Skip to content
Alex Forrence edited this page Apr 30, 2016 · 2 revisions
  1. Navigate to https://git-scm.com/ and download the appropriate build for your system.

    • Binaries available for Windows and OSX, apt-get install git in Debian Linux. Git may come with Xcode on OSX; if you have Xcode already, skip to step 3.
    • Don't download a GUI, the command line version is easier to use in the end (for me, at least).
  2. Click through the installer (all the defaults are fine).

  3. Open a terminal and type git to verify the install. If it tells you something along the lines of "Couldn't find it", try repeating the install(?).

  4. Set your name and email address, eg.

    git config --global user.name "John Doe"
    git config --global user.email johndoe@example.com
    
  5. Set the default text editor, eg.

    git config --global core.editor emacs
    git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -nosession"
    
  6. Finally, you can verify settings with

    git config --list
    

Source:

https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup