Visual Studio Git



Using GitHub with Visual Studio Code lets you share your source code and collaborate with others. GitHub integration is provided through the GitHub Pull Requests and Issues extension. Install the GitHub Pull Requests and Issues extension.

  1. Visual Studio Code has integrated source control management (SCM) and includes Git support in-the-box. Many other source control providers are available through extensions on the VS Code Marketplace. Tip: Click on an extension tile to read the description and reviews in the Marketplace.
  2. Open the GitHub pane by typing GitHub into Visual Studio Quick Launch (Ctrl+Q). Create Pull Requests from Visual Studio Turn a branch into a Pull Request directly from Visual Studio. In the GitHub pane, click the Create New link to create a new Pull Request on GitHub.
  3. GitLab Extension for Visual Studio You can login any of your favorite GitLab servers and start your great job! The GitLab Extension for Visual Studio provides GitLab integration in Visual Studio 2015/2017/2019.Most of the extension UI lives in the Team Explorer pane, which is.

The git integration with Visual studio is great. It is able to find all the git repositories on your machine and show them all nicely in the team explorer.

Git

Visual Studio Git Integration


However, when working with git, it is very useful to see the actual command line output. Using the GUI can obscure what is actually going on.
TFVC source control has the same problem, as when getting the latest changes, you don’t automatically see everything that’s happening, unless you take the time to open the Output window and navigate to the TFVC Output, where with the default settings you only see updated files in a list.

The command line is what really lets you see the details of what’s happening, as well as giving you the ability to try out all the commands and options, not all of which are available from within visual studio.
Below we can see all the details associated with a git pull from a remote repository. Insertions, deletions, and associated counts are neatly laid out and colored in green and red.


How to Quickly Open the Command Prompt with the Project Directory
To quickly get started with the command prompt, it is very helpful to be able to open it directly in the path for the current project. To do this right click on the local git repository in VS and select open command prompt..

Visual Studio Gitea

Studio

Visual Studio Git Sync

This opens a cmd.exe window opened to the project directory. I don’t like having to use tools outside the IDE unless absolutely necessary, as the context switching can slow productivity. I have started using the extension below which integrates a terminal windows.
Better Integration with a marketplace Extension (vsix)





Comments are closed.