Setup Git on Windows

Git is a version control system really useful for tracking changes in computer files and coordinating work on those files among multiple people.

Installation on Windows

To install Git on Windows you have to download Git for Windows.

Once the installation is complete, you will need SSH as well. Take a look at Setup SSH on Windows.

Git Setup

To setup Git you will use the command git config. More informations can be found in

Configure your Identity

Your identity (user name and email) must be configured:

git config --global "John Doe"
git config --global

The --global option will configure your Git durably. If for one project you want to configure another user name or email you have to run the same command without --global.

Configure your Editor

For example if you want to change your default text editor to Nodepad++, the command is:

On a x86 system

git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -nosession"

On a x64 system

git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -nosession"

Check the Settings

To check your settings the command is git config --list.

git config --list

It will return something like: Doe

mode_edit Suggest edits