This Guide Will Show You How To Install Git On Windows
This Guide Will Show You How To Install Git On Windows
Windows
Posted January 8, 2020 WINDOWS GIT
1. Home
2. SysAdmin
3. How to Install and Use Git on Windows
Introduction
Git is a widely used open-source software tracking application used to track projects
across different teams and revision levels.
Prerequisites
Administrator privileges
Access to a command-line
Your favorite coding text editor
Username and password for the Github website (optional)
Steps For Installing Git for
Windows
Installing Git prompts you to select a text editor. If you don’t have one, we strongly
advise you to install prior to installing Git. Our roundup of the 11 best text editors for
coding may help you decide.
5. Review the GNU General Public License, and when you’re ready to install,
click Next.
6. The installer will ask you for an installation location. Leave the default, unless you
have reason to change it, and click Next.
7. A component selection screen will appear. Leave the defaults unless you have a
specific need to change them and click Next.
8. The installer will offer to create a start menu folder. Simply click Next.
9. Select a text editor you’d like to use with Git. Use the drop-down menu to select
Notepad++ (or whichever text editor you prefer) and click Next.
10. This installation step allows you to change the PATH environment.
The PATH is the default set of directories included when you run a command from
the command line. Leave this on the middle (recommended) selection and click Next.
12. The next selection converts line endings. It is recommended that you leave the
default selection. This relates to the way data is formatted and changing this option
may cause problems. Click Next.
13. Choose the terminal emulator you want to use. The default MinTTY is
recommended, for its features. Click Next.
mkdir git_test
cd git_test
Note: If you already have a GitHub repository, use the name of that project instead
of git_test.
Important: In the example above, the command will clone the repository over
HTTPS. Another option is cloning with SSH URLs. For that option to work, you
must generate an SSH key pair on your Windows workstation and assign the public key
to your GitHub account.
cd git_project
1. For example, create a new text file by entering the following into your PowerShell
window:
new-item text.txt
git status
5. Run git status again to make sure the text.txt file has been added. Next, commit the
changes to the local project:
Note: You may need to enter your username and password for GitHub.
Conclusion
You now have a working installation of Git on your Windows system. Use Git’s
features to coordinate work among programmers on a project.
For Linux and MacOS installation guides, check out our articles on installing Git on
Ubuntu, CentOS and MacOS