Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git with Visual Studio Source Control Explorer available yet?

we set up Git as version control system (we used tfs before). Now the source control explorer is not available anymore.

I found this thread from 2013: Using Git in Visual Studio, how do I navigate repository files?

It's 2015 now and I cannot find any info from late 2014 or 2015. Does anybody know something new?

Thanks

like image 239
user3596113 Avatar asked Jan 21 '15 09:01

user3596113


People also ask

How do I get Source Control explorer in Visual Studio?

Source Control Explorer is available in Visual Studio, but isn't opened by default when working with a project managed in TFVC. You can open the Source Control Explorer window: From the Team Explorer home page (Keyboard: Ctrl + 0, H), choose Source Control Explorer. From the menu bar.

How do I get the Git tab in Visual Studio?

Adding the GIT menu in VS 2019 Community Edition We will open Visual Studio 2019 Community Edition and select “Extensions-> Manage Extensions” from the top menu. Then, select “Online-> Visual Studio Marketplace” and search for “GIT”.

Where can I find Source Control in Visual Studio 2019?

In Visual Studio 2019 (and earlier verions), you could open Source Control Explorer by navigating to View | Other Windows | Source Control Explorer.

How do I enable Source Control in VS code?

Launch VS code, and in the left-hand menu, click on the Source Control icon for Git. It gives two options – Open Folder and Clone Repository. We can open a git repository folder or clone from a GitHub URL. We already set up a GitHub repository in the previous article.


2 Answers

VS2015 still does not have a file browser for Git projects. They do have a list of *.sln files that can be opened within a Git repo. If you have say a "ReadMe.txt" at the root level of the repo though, you still need to open it in explorer or command line and modify it (either by adding to VS or elsewhere), then the file will show up in pending.

In VS2012, there was an add in called "Mindscape File Explorer" that added a file explorer. You could set the root directory to your projects folder and save you from leaving VisualStudio.

Apparently no one at Microsoft cares about solving this problem since it's been around for years now. Seems like it would be an easy win to just show all files at the project root level in either the solution tab or a new project view tab.

like image 120
Japster24 Avatar answered Nov 15 '22 06:11

Japster24


Visual Studio "15" Preview has an "Open Folder" feature that let's you load up any folder in the Solution Explorer but it's not connected with Source Control, you have to do it manually after you've connected with the repository in Team Explorer but it's better than nothing.

You can right-click the file to access History, Commit, Compare with unmodified, Undo, Go to git changes... etc

like image 36
Sami Ben Avatar answered Nov 15 '22 06:11

Sami Ben