

Windows eg.: git config -global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -nosession" Install git on your PC and setup configuration values in either Command Prompt (cmd) or VS Code terminal ( Ctrl + `) git config -global user.name "Your Name" You can also verify by refreshing the GitHub repo online. You can see the success message in the Terminal.Note: If it is the first time the local git account is trying toĬonnect to GitHub, you may be required to enter credentials to GitHub in a separate window. Git push -u origin master // pushes the commit-ed changes into the remote repo Git remote -v //this is to verify the link to the remote repo


Git remote add origin //maps the remote repo link to local git repo Sometimes these settings cause issue while pushing in.Ĭopy the link to this newly created GitHub Repository.Ĭome back to the terminal in VS-CODE and type these commands in succession: Exclude creating 'README.md', '.gitIgnore' files. Now you need to visit your GitHub account and create a new Repository. Press on 'Commit' button, provide comments, stage the changes and commit the files. Once that is successful, click on the 'Source Control' icon on the left navbar in VS-Code.One should be able to see files ready to be commit-ed. Navigate to the local project directory and create a local git repository: It is understood that Git is installed in the system, configured with desired username and email Id. The existing commands can be simply run via the CLI terminal of VS-CODE. This file contains definitions for all the custom diff and merge tools you want to use, not just Visual Studio Code.Here are the detailed steps needed to achieve this. You need to create a ist file in ~/Library/Application Support/2/CompareTools/. If you use Git Tower as you GUI client for Git, adding Using Visual Studio Code as a merge tool is a bit more tricky, but there is documentation showing you how to do it. You just need to define a new tool called code and set it as the default merge tool. Using Visual Studio Code as a merge tool for Git when using command line means editing your. I like this feature so much I decided to set Visual Studio Code as my Git merge tool for both the command line and Git Tower. Instead of a 2-way or a 3-way split it just shows one window with both changes, nicely highlighted with colors and actions. Visual Studio Code is a neat editor with many good functionalities but I especially like the way it shows Git merge conflicts.
