Michael Galarnyk

@GalarnykMichael

Install Git on Windows

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, youtube video page, or through Twitter.

More by Michael Galarnyk

Topics of interest

More Related Stories