Now configure your Github account with Visual Studio. If you don’t have an account with Github, then create a new account https://github.com/ .
After configuration, you will see your username on Github and the project name as a Repository name. If you want to add a description, then you can optionally add one. If you want to make your repository private, then click on the checkbox, or otherwise leave it. Now click on the publish button.
After clicking on publish, it’ll take a little bit of time. After finishing, it will show you the message, “Repository Created Successfully”. Again, click on sync and click on pull. It will show “Repository is already up to date. No changes to pull”.
Now you can see your project in GitHub. Open your GitHub account and check all the code uploaded with the project name Repository.
Step 4
Now open Visual Studio and change some code. Click on the Home tab in “Team Explorer”. Now click on the Changes tab.
After clicking on the Changes tab, it will open in another window. Here, you can see the changes file.
Now give a commit message. The changes you are going to commit to should be specific. Then click on the “Commit All” button. Next, click on the Sync link, which is shown in the commit message.
It will show another window. Click on the push link which is in outgoing Commits. After clicking on push, it’ll take time to update the Github Repository.
After pushing the code in Github repo, you can see your changes with the commit message.
That's it. I hope that you found this article helpful. Please let me know via comments and likes!