Setting up git
Alex Forrence edited this page Apr 30, 2016
·
2 revisions
-
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).
- Binaries available for Windows and OSX,
-
Click through the installer (all the defaults are fine).
-
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(?). -
Set your name and email address, eg.
git config --global user.name "John Doe" git config --global user.email johndoe@example.com
-
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"
-
Finally, you can verify settings with
git config --list
https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup