GitHub-VSCode Beginners Guide for Code Merge (The strict GUI-method)
I was learning Python and learned to use GitHub with VS Code along the way. Would like to share the same with all the beginners like me.
In this article, you would learn how to merge your code created in VS Code with your GitHub repository. Let's begin!
First of all, let's split the topic in 5 different sections for better understanding.
Prerequisites
To setup "user.name" and "user.email" for the GIT, just open the cmd/terminal depending upon which OS you are on, and type the below two commands, replacing it your name and email address.
git config --global user.name "John Doe"
git config --global user.email "johndoe@example.com"
Clone the Code
Creating a branch to create/update the Code
Even though it's not mandatory to create a branch and you can directly update the code in main branch, however it's a best practice to do so.
Recommended by LinkedIn
Commit the Code
Note: Pull request is a request that is made to the GitHub repository to merge the code with the main branch.
Merge the Code
Congratulations on merging your first code in GitHub using VS Code! I hope this helped!
Tags: #github #vscode #newdevelopers