Install Git Software / Command Line Software
Git command-line tools are useful when using Git commands from a terminal window. The following choices will also install stand-alone graphical user interface (GUI) tools, meaning that the tools are not part of an integrated developer environment.
See the Getting Started - Installing Git documentation.
Install Git on Cygwin
Install Git on Cygwin using the normal Cygwin setup program and select the git tools from the Devel software group.
Install Git on Linux
Install Git on Linux using:
$ sudo apt-get update
$ sudo apt-get install git-all
Install Git on Windows (Git for Windows)
Git for Windows is available as a standard installer and includes Git Bash and Git GUI. This software also installs a copy of Minimialist GNU For Windows (MinGW), in order to provide command-line Bash shell functionality. This is relevant because other development environments, such as GCC on Windows may use another copy of MinGW. It is OK to have multiple versions of MinGW installed if disk space is available, but software developers will need to understand which MinGW shell is being used.
Determine whether Git for Windows is installed by looking for Git in the Windows Start menu.
The following is the installer for Git for Windows, which will install the command-line Git BASH shell and interactive Git GUI.
- Git for Windows Download - 64-bit Windows installer
The following example installs Git on Windows 10. Run the installer.
Research indicates that although it may be possible to install Git software in another folder, installing under the user files may be only option, so use the default.
The following setting is recommended and will require using Git BASH or Git GUI from the Windows Start menu.
The following setting ensures that text files in the Git repository will end with LF character and allow files on the file system to use normal Windows CRLF characters. This facilitates collaboration between developers on different operating systems.
The following setting provides better behavior when using Git BASH.
The following settings allow for advanced use, although that is not expected on this project.
Do not use experimental features.
After installing, Git BASH can be run from the start menu to provide a Linux-like terminal window to run Git commands. Git GUI can also be run to provide an interactive interface.
The Git for Windows software install folder varies depending on the Git for Windows version,
operating system, and user.
To determine where the software is installed, open Git BASH and show the current folder.
For example, the following output is from an older Windows 7 installation,
and reviewing the installation folder does not show a MinGW folder (all files are in a bin
folder).
$ git --version
git version 1.9.4.mysysgit.2
$ cd /
$ pwd -W
C:/Program Files (x86)/Git
The following is output from a Windows 10 installation.
Reviewing the folders shows a mingw64
folder, under which exist programs that can be run in BASH.
$ git --version
git version 2.11.0.windows.1
$ cd /
$ pwd -W
C:/Users/sam/AppData/Local/Programs/Git
Next Steps
After installing Git, the software needs to be configured to reflect developer name and preferences.