简体   繁体   English

如何知道在Visual Studio的Git中是从哪个分支创建的?

[英]How to know which branch a branch was created from in Git in Visual Studio?

I have created a new branch in Visual Studio 2017 from another branch in Git. 我已经从Git中的另一个分支在Visual Studio 2017中创建了一个新分支。 Say 2.0.0. 说2.0.0。 How do I know sometime in the future that branch 2.0.0 was the branch I created from? 我将来如何知道分支2.0.0是我创建的分支? I didn't commit anything from the new branch. 我没有从新分支提交任何东西。

I followed all the answers from this question and their answers didn't give me what I am expecting. 我遵循了该问题的所有答案,但他们的答案并没有给我我所期望的。 Nothing showed me '2.0.0' or I got errors. 什么都没显示“ 2.0.0”,否则出现错误。 Plus some answers were complicated. 再加上一些答案很复杂。 I am not versed in command line Git commands as I mainly use Git from VS's UI. 我不精通命令行Git命令,因为我主要从VS的UI使用Git。

I assume this information exists in some Git file in the VS solution. 我假设此信息存在于VS解决方案的某些Git文件中。 Looking to know which file I can open and it has the answer or use a simple Git command. 想知道我可以打开哪个文件,它具有答案或使用简单的Git命令。

该文件x:\\ xxxx \\ SolutionFolder \\ .git \\ logs \\ HEAD具有显示创建的分支及其来源的条目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM