美文网首页
查询git提交分支名称的终端命令

查询git提交分支名称的终端命令

作者: 囡啵萬的中央哆 | 来源:发表于2022-12-26 09:36 被阅读0次

1 >   cd 项目所在路径
2 >.  git log
3 >  Q 退出编辑
4 >  git branch --all --contains (git提交时生成的流水码)

5 >. 可以查到:

查询命令:

所有分支:git branch --all --contains <commit>

本地分支:git branch -l --contains <commit id>

远程分支:git branch -r --contains <commit id>

git log --after="2013-11-11" --until="2013-11-12"

git log --since="2013-11-11" --until="2013-11-12"

git log --after="2013-11-11" --before="2013-11-12"

git log --since="2013-11-11" --before="2013-11-12"

git log --since=jun9 --until=jun10 --author=Robert

相关文章

网友评论

      本文标题:查询git提交分支名称的终端命令

      本文链接:https://www.haomeiwen.com/subject/fxlnqdtx.html