Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何git记录包含特定提交的所有分支_Git_Git Branch_Git Log - Fatal编程技术网

如何git记录包含特定提交的所有分支

如何git记录包含特定提交的所有分支,git,git-branch,git-log,Git,Git Branch,Git Log,git log接受多个分支名称作为参数,并使用--graph获得它的良好树状视图。使用--all我可以看到完整的树,使用--branchs我甚至可以过滤分支名称 我想显示特定分支的所有(子)分支的完整历史记录。为此,我想知道如何git-log所有包含提交的分支? 使用git branch--contains,我可以找到所有包含特定提交的分支。因此,通过一些bash魔法,我可能可以编写一个命令来实现我想要的。但是我猜git应该有一种更直接的方法来获取这样的日志。git是工具箱中的一个工具git l

git log
接受多个分支名称作为参数,并使用
--graph
获得它的良好树状视图。使用
--all
我可以看到完整的树,使用
--branchs
我甚至可以过滤分支名称

我想显示特定分支的所有(子)分支的完整历史记录。为此,我想知道如何
git-log
所有包含提交的分支?


使用
git branch--contains
,我可以找到所有包含特定提交的分支。因此,通过一些bash魔法,我可能可以编写一个命令来实现我想要的。但是我猜git应该有一种更直接的方法来获取这样的日志。

git是工具箱中的一个工具
git log——graph$(git branch——包含$thatcommit | sed s///)
再简单不过了。