Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 找到一个分支的父分支
我创建了一个新的功能分支,但我忘记了我在哪里分支了这个功能分支。现在功能已经完成,但我不知道我必须在哪个分支中合并我从谁找到我已经分支的分支?
我相信您可以使用 gitk 或 git-log 来更好地可视化您的提交历史。
像这样:
gitk --all
或者
git log --graph --decorate
您可以通过键入以下内容来列出子分支: git branch --contains
只有当你没有很多可能是父分支的分支时,我认为它可能很有用