Step 1: Download Git for Windows
First, go to this website: https://git-scm.com/download/win From the option, select “Click here to download manually” and save the file.
Step 5: Select the components to be installed:
Again, the default is fine here.
- Windows Only: select start menu folder (default is fine):
Step 6: Choose the default editor used by Git.
Select Visual Studio Code
as the default editor. (Note that you must install Visual Studio Code
first before you can move forward past this step of the Git install.)
Click Next
when you’re ready.
Step 7: Choose the "Use Git from the Windows Command Prompt" radio button.
Click Next
when you’re ready.
Step 9: Configure the line ending conversions.
Again, the default is fine. Click Next
when you’re ready.
Step 10: Configure the terminal emulator.
On the ‘configuring the terminal emulator to use with Git Bash’ window, choose the “Use Windows default console window” option.
Note: Do not choose “Use MinTTY (the default terminal of MSYS2)” as that MinTTY wil break Python.
Step 13: Finish the installation.
Click through the rest of the install, leaving the defaults, and then click Finish
on the last window.
Step 14: Test the install.
Now, let’s make sure Git has been installed successfully.
- Open Your terminal
- Type the following into the terminal:
$ git
The terminal should print something like (note that this is truncated):
usage: git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>]