Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to show the Git commands that Visual Studio executes? [duplicate]

In Visual Studio Code, there is a "Show Git Output" menu item that shows the recent Git commands that have been run. For an example of what this looks like, see 3:35+ in this video.

Is there a way to do the same in Visual Studio?

like image 861
foluis Avatar asked Jan 21 '17 03:01

foluis


People also ask

How can I see history of Git commands typed so far?

The git log command shows a list of all the commits made to a repository. You can see the hash of each Git commit , the message associated with each commit, and more metadata. This command is useful for displaying the history of a repository.

How do I check my Git status in Visual Studio?

Visual Studio displays the current branch in the selector at the top of the Git Changes window. The current branch is also available in the status bar on the bottom-right corner of the Visual Studio IDE.

Can I run Git commands in Visual Studio?

Visual Studio and the Git command-line work great together. When you make updates and run commands through one interface, you'll see those changes reflected in the other.


1 Answers

This is not entirely possible (for instance, for VS2015) because:

  • only Visual Studio 15 Preview 5 is switching from using libgit2 to using git commands directly.
  • As explained in "Work from the Git command prompt", VS2015 does not know how to perform all Git commands anyway
like image 76
VonC Avatar answered Oct 20 '22 10:10

VonC