paint-brush
Install Git on Windowsby@GalarnykMichael
44,944 reads
44,944 reads

Install Git on Windows

by Michael GalarnykDecember 17th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The following set of instructions details how to install <a href="https://hackernoon.com/tagged/git" target="_blank">Git</a> on <a href="https://hackernoon.com/tagged/windows" target="_blank">Windows</a>. 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 <a href="https://www.youtube.com/watch?v=n3Mh9SOSEUA" target="_blank">youtube video</a> if you want a video walkthrough.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Install Git on Windows
Michael Galarnyk HackerNoon profile picture

See step 4 in the tutorial to avoid Vim

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.

  1. 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”.

Click on “Save File”

2. Click on the .exe file.

Click on the .exe file

3. Click on “Run” if you see a security warning.

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”.

Use Git and optional Unix tools from the Windows Command Prompt

6. Choose “Use Windows’ default console window.

Choose Windows’ Default Console Window

7. Click on “Install”.

Click on Install

8. Click on “Finish”

Click on Finish and you are Done!

9. Open command prompt and get started!

git clone https://github.com/mGalarnyk/Python_Tutorials.git

Commonly Asked Questions

  1. 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.

Finding out where git is on my computer

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.

Remove the unix tools (enclosed in red) from your path.

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.

Concluding Remarks

If you any questions or thoughts on the tutorial, feel free to reach out in the comments below, , or through Twitter.