How to use Git

Today i am going to talk about Git – a version control system. Which helps you maintain your commits, code changes etc. How to commit a change made on a local machine to your Git repository ?

 

Initialize the local directory as a Git repository

Add files in your local repository. This stages them for commit.

Commit the files that you’ve staged in your local repository

Copy the URL of your GitHub repository.
In terminal add the URL for the remote repository where your local repository will be pushed

Push the changes in your local repository to GitHub

I will keep adding contents to this article as i discover more about Git and GitHub.