DEV Community

Joel Kahora
Joel Kahora

Posted on

Installing Git for version Control

git logo
Git is a Version Control System commonly abbreviated as VCS, It can be used by GitHub, GitLab and Bitbucket
To install git head over to git and choose your operating system to download.
After Installing open your command prompt and check your version by typing following command

git --version 
Enter fullscreen mode Exit fullscreen mode

To configure git for version control with GitHub you need to login from the terminal by typing

git config --global user.name "Your GitHub username"
git config --global user.email "Your GitHub email"
Enter fullscreen mode Exit fullscreen mode

To initialize a new local repository use

git init "your project name without the quotes"
Enter fullscreen mode Exit fullscreen mode

To install a project from a remote repository i.e. from GitHub

git clone "paste the repository link"
Enter fullscreen mode Exit fullscreen mode

Top comments (0)