简体   繁体   English

如何在Visual Studio提交详细信息中查看Git分支?

[英]How to See Git Branch in Visual Studio Commit Details?

When I look at git commit details in visual studio 2019, it doesn't show the branch it was committed to. 当我在Visual Studio 2019中查看git commit详细信息时,它没有显示其提交到的分支。 How can I easily find this out? 我怎样才能轻松找到这个? thanks. 谢谢。

在此处输入图片说明

As mentioned by Daniel in the comments, git branches are simply pointers to commits. 正如Daniel在评论中提到的,git分支仅仅是指向提交的指针。 You can find out which branches contain the commit using the following command 您可以使用以下命令找出哪些分支包含提交

git branch --contains <hash>

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

相关问题 Visual Studio 2015 Git“有关详细信息,请参阅输出窗口”但没有详细信息 - Visual Studio 2015 Git "See the Output window for details" but no details there 如何在Visual Studio中打开另一个GIT分支而无需提交对当前的更改? - How can one in Visual Studio open another GIT-branch without need to commit changes to the current one? 如何使用Visual Studio git集成查看合并提交中更改的文件 - How to see the files changed in a merge commit using Visual studio git integration 在 Visual Studio 中提交 Git - Git commit in visual studio git —如何查看分支 - git — how to see branch Visual Studio可扩展性:从团队资源管理器的Git Commit Details页面获取Git存储库的路径 - Visual Studio Extensibility: Get the Git repository's path from Team Explorer's Git Commit Details page 如何知道在Visual Studio的Git中是从哪个分支创建的? - How to know which branch a branch was created from in Git in Visual Studio? Git:在git visual log上看不到提交 - Git: cannot see commit on git visual log 在 Visual Studio 中从过去的提交创建新的 git 分支时,如何处理数组越界异常? - How do I deal with the array out of bounds exception when creating a new git branch from a past commit in Visual Studio? Git如何检出分支的提交 - Git how to checkout a commit of a branch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM