-
Notifications
You must be signed in to change notification settings - Fork 1
Install Git
Git is a free and open source distributed version control system (VCS). VCS is a subset of software configuration management (SCM). Think of Git as a way to track everything that's ever been done to a file. This isn't strictly true but it provides data assurances. Git can handle projects of any size.
For our purposes, it provides easy access to some neuroimaging software.
You can check to see if you have git installed already on your system:
$ git --version
git version 1.7.1
- If you need to install:
# sudo dnf install git-all
# sudo apt install git
There are several ways to install Git on a Mac. The easiest is probably to install the Xcode Command Line Tools. On Mavericks (10.9) or above you can do this simply by trying to run git from the Terminal the very first time.
$ git --version
If you don’t have it installed already, it will prompt you to install it.
If you want a more up to date version, you can also install it via a binary installer. A macOS Git installer is maintained and available for download at the Git website.
There are also a few ways to install Git on Windows. The most official build is available for download on the Git website. Just go to http://git-scm.com/download/win and the download will start automatically. Note that this is a project called Git for Windows, which is separate from Git itself.
To get an automated installation you can use the Git Chocolatey package. Note that the Chocolatey package is community maintained.
Another easy way to get Git installed is by installing GitHub Desktop. The installer includes a command line version of Git as well as the GUI. It also works well with Powershell, and sets up solid credential caching and sane CRLF settings. If you need more information, refer to the Git website. You can download this from the GitHub Desktop website.