
Finally, refresh your GitHub repository URL. Click on the Authorize GitCredentialManager button.Ĭlick on the Authorize GitCredentialManager button. An authorization page will pop up in the browser. Select the Sign in with your browser button. Choose which option you’ll use to sign – I’m using my browser. A pop-up will appear to log in to GitHub. Then, choose your repository path and press Enter.Ĭhoose the option according to the GitHub URL or the remote name. Open the Push to sub-menu option again. Then, type any remote name and press Enter. Paste the GitHub Repository URL that we copied from GitHub. Paste the copied GitHub repository URL and press Enter. Next, select Pull, Push from the list of options, then select Push to… Then, from the Pull, Push menu option, select Push to.Ĭlick on the three-dot (ellipsis) icon. Inside the Source Control panel, click the Overflow button (it has the ellipsis icon). When prompted with a pop-up, choose Yes. Type any commit message and press Ctrl + Enter. Then, click on the ✓ icon next to Source Control heading or press Ctrl + Enter. For example, I will name it “First Commit”. Now, under the Source Control panel, enter any commit message. Click on the Initialize Repository button from the “Source Control” tab in the sidebar.įrom the Source Control tab, select Initialize Repository. Note: Make sure all the code files are in one folder, as you’ll have to push the entire folder to GitHub. Once the folder is opened, you’ll see all the source files.
Open the folder from your preferred directory.
Open the folder from your preferred directory. From the “Explorers” tab in the sidebar, click on the Open Folder button.Ĭlick on the Open Folder button from the sidebar.
This URL allows us to push code to this repository from VS Code. Once your repository is created, copy the web URL.Name your Repository, then click the Create repository button. Enter a repository name and click on the Create repository button.
Click on the + icon on the top right to create a new repository.Ĭlick on the New Repository from the “+” icon. Secondly, make sure to have an account on GitHub. Go to /downloads and choose the download for your operating system. Git will give us the underlying technology which powers GitHub. Step 1: Install Git Install Gitįirstly, you need to have Git installed on your system. This guide shows how to push code from the VS Code terminal to GitHub. Pushing code to GitHub means moving your code files from a local repository to a remote GitHub repository.