Member-only story
How to commit and push your changes to your GitHub repository in VScode
In this article I will walk you through the proper steps that will demonstrate to you how to commit and push your changes to your remote repository on GitHub using your VScode in few easy steps.
In this article we will assume that you have an active GitHub account. If you currently do not have an account with GitHub you can easily create one by going here: GitHub
Additionally, we will assume that you have a remote repository on GitHub that you have cloned locally on you machine/computer.
To learn how to create a remote repository on GitHub as well as clone it locally you can view this article for a quick step-by-step demonstrating how to do so.
1 — Open repository in VScode
I have a remote repository on GitHub “githubrepotutorial” and I have already cloned it locally. The repository is simple and only has two files, helloworld.js and a README.md.
In the screen shot below you will see the repository opened in VScode. If you look at the lower left hand side of the screen shot where the red arrow is pointing will notice that is says “master”. This is the branch that you are currently in. Any changes that you are going to make will belong to that repository.
For this article we will make a change to the helloworld.js file, commit it to our local repository and finally push it to our remote repository.

2 — Quick background about Git
Git is a very powerful tool and by far it is the most popular/used version control system. Git is a distributed version-control system for tracking changes in source code during software development.
Each developer can clone the remote repository locally which mean each developer will have a full version of the repository on his/her machine. Developer can work offline and all commits will be done to the local repository. Once the developer is ready to…