简体   繁体   中英

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. Say 2.0.0. How do I know sometime in the future that branch 2.0.0 was the branch I created from? 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. Plus some answers were complicated. I am not versed in command line Git commands as I mainly use Git from VS's UI.

I assume this information exists in some Git file in the VS solution. Looking to know which file I can open and it has the answer or use a simple Git command.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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