The following set of instructions details how to install Git on Windows. I should mention that you should be okay with the default installation options. However, these instructions should make your life easier if you are new to Git or don’t know Vim. I even made a youtube video if you want a video walkthrough.
- Go to the following website: https://git-scm.com/download/win . If the download doesn’t start automatically, then click on “click here to download automatically”.
2. Click on the .exe file.
3. Click on “Run” if you see a security warning.
4. Go through the default installation process until you get to “Choosing the default editor used by Git”. The default “Use Vim” maybe too hard to use for you if you don’t already know Vim. Choose Nano or Notepad++ which are easier to use.
5. Choose “Use Git and optional Unix Tools”. I would recommend this as this will provide you Unix commands like “ls” and “cat”.
6. Choose “Use Windows’ default console window.
7. Click on “Install”.
8. Click on “Finish”
9. Open command prompt and get started!
Commonly Asked Questions
- If you did not choose “Use Git and optional Unix Tools” and now want to add the optional unix tools, you can do it by using the SETX command (or you can manually modify your environment variables).
You can add the add the tools to your path by using the SETX command in your command prompt. If you don’t know where git is located on your computer, you can type where git into the command prompt.
All you have to do is add the following to your path (slightly modify it based on what where git outputs).
SETX PATH "%PATH%;C:\Program Files\Git\usr\bin"
2. If you choose “Use Git and optional Unix Tools” and now want to remove them from command prompt, you can do the following.
From the image, the text enclosed in the red rectangle are the optional unix tools. Go to your Environment Variables on your computer and simply remove C:\PathToGitFolder\Git\usr\bin from your path.