Git show all branches (but not stashes) in log

前端 未结 3 1792
孤城傲影
孤城傲影 2021-01-30 19:25

I have a Git alias that expands to:

git log --graph --oneline --all --decorate

According to man git log there are a couple of susp

3条回答
  •  无人共我
    2021-01-30 20:04

    Note that Andrew's answer wouldn't work for hiding StGit1.) branches .stgit (from StGit version 0.15) which otherwise litter the output making it unusable.

    Currently I use the following solution:

    $ git log --graph --oneline --decorate \
      $(git for-each-ref --format="%(refname)" refs/heads/ refs/remotes/ |
        grep -v "\.stgit$")
    

    1.) StGit ("Stacked Git") provides Quilt/mq--like functionality to Git (i.e. pushing/popping patches to/from a stack).

提交回复
热议问题