Admin
2024-05-07
0 mins read
More and more developers are switching to SaaS-based version control platforms like GitHub, GitLab, and Bit Bucket as distributed version control solutions displace centralized systems like Subversion and CVS. These are all Git-based platforms, thus naturally, in order to work with them, developers must first locally install Git on Windows or Linux machines.
Here, you will learn how to install Git on Windows in this Git tutorial. Next, you must know to utilize the five fundamental Git commands that every developer should be familiar with to check if the DVCS tool was correctly installed.
The steps to install Git on Windows are as follows:
By using the five fundamental Git commands that every developer should be familiar with, you can verify the validity of your Windows Git installation.
These are the standard Git commands:
Create a new folder called repos off the C: drive before running Git init:
windows@install-git MINGW64 /c/repos $ git init Initialized empty Git repository in C:/repos/.git/
Create a new folder and place a file called windows-git-install.txt inside of it.
windows@install-git MINGW64 /c/repos $ touch windows-git-install.txt
Then add the file to the Git index:
windows@install-git MINGW64 /c/repos $ git add .
Configure the Git userβs email address and username:
windows@install-git MINGW64 /c/repos $ git config --global user.name "Cameron McKenzie" windows@install-git MINGW64 /c/repos $ git config --global user.email "mail@example.com"
Commit the new file to the new Git repository:
windows@install-git MINGW64 /c/repos $ git commit -m "New Windows git install commit" [master (root-commit) 5b8f1f4] New Windows git install commit 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 windows-git-install.txt
And finally, check the status of the newly installed Git repo:
windows@install-git MINGW64 /c/repos $ git status On branch master nothing to commit, working tree clean
The process of installing Git on Windows is now complete. Make that the DVCS tool is set up correctly to manage source code and communicate with SaaS-based platforms like GitHub, GitLab, and BitBucket.im
If you are new to Git, you might find installing it quite intimidating. So, you will need expert guidance, but if you are not available to contact any, this step-by-step guide on how to install Git on Windows will definitely help you.
INQUIRY
By tapping continuing, you agree to our Privacy Policy and Terms & Conditions
SkillAhead Solutions
Gurgaon
USA
1603, Capitol Avenue, Suite 413A, 2659, Cheyenne, WY 82001, USA
COURSE CATEGORIES
`Copyright Β© DevLabs Alliance. All rights Reserved`
|
Refund & Reschedule Policy
Privacy Policy
Terms of Use