Git with Visual Studio Source Control Explorer available yet?

时间秒杀一切 提交于 2019-12-23 09:58:44

问题


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


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/28064078/git-with-visual-studio-source-control-explorer-available-yet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!