The git command adds a change in the working directory to the staging area.When you are going to execute git command for the first time, you will have to log in to your GitHub account. Make sure when you are using next GitHub command, you should open the integrated terminal in the repository folder. Now after cloning your repository, you can work on it and make necessary changes. If you do, then it will give you an error. Its a one time command for the same folder. Don’t clone GitHub repository in the same folder again and again.This command will clone your all files and folder you have in your GitHub repository.So now simply, we have to type some GitHub command. Open your VS Code and make sure you are in your desired folder to clone your GitHub repository. Now you have SSH Code of your GitHub repository. GitHubĬreate a repository on your GitHub account and you can add README.md file for the initial part and Copy the SSH Code by clicking on Code and then simply you can copy or click on copy to clipboard.
#HOW TO USE VISUAL STUDIO CODE GIT INSTALL#
To download and install extension simply click on extensions button on left side panel or simply click Ctrl+Shift+X on windows and Cmd+Shift+X on mac to open extensions panel and then search GitHub Pull Requests and Issues and download the extension.Īfter Installing extension login to your GitHub account by clicking on the Accounts button located at the bottom left side of the panel. Git: Download and Install Git and login to your GitHub account.Īfter downloading when you open VS Code, we need to download the extension to connect VS Code and GitHub.VS Code is developed by Microsoft.īefore we started, I wanna thank Singh for helping me to write the blog. It has a large collection of extension which you can use for your requirement. It comes with emmet pre-built which no other text editor does and it also allows us to tweak into its code so we can even modify it’s environment variables according to our preferences. VS Code is an IDE(Integrated Development Environment), We can make it more powerful by using the extensions and it’s very easy to customise. Github is like social media for programmer where you can upload your code/ project file and get star, fork, and can be part of the developer and work on the project with other programmers on Github. After master is up to date, we are switching back to TESTĤ.If you are reading this, then you probably know what GitHub and VS Code(Visual Studio Code). In my case as you can see it did not work because I had one commit which was not posted to main, in this case you can do resync/update from the VS extension, to get the latest version:ģ. use git checkout master to ensure that branch is up to dateĢ. Now we are going to merge main into our pull request branch for testing, mainly we need to make sure here that master is up to date and start merging:ġ.
Let’s get this pull request as a branch locally with Pull request is being created based on the branch in this case I took movingtoRC one as I want ask someone to check my changes and confirm that I can merge them to the main one:Īs we have now our pull request ready, we can see that it received an identifier #6 Normally we always need to test the whole set of code before accepting a git pull request, in this article we will try to understand the best approach to deal with pull requests and test them locally.įirst, we need to get and setup visual studio github extension we won’t go through the way of setting up it, because this process is very well documented and just start from creating a pull request in the visual studio: