In version control with Git, we deal with two repositories:
- Local repository, which will reside in your system.
- Remote/Central repository, which usually resides in a remote machine.
In this case, we want our central repository to GitHub. So, this is what we will do.
Assuming you have installed and configured git in your system, this is what you need to do-
Step 1: Set up GitHub as your remote repository
git remote add origin <link of your central repository>
Step 2: And now you can push your changes onto your GitHub repository
git push origin master