在 git 日志中排除远程 --all

  • 本文关键字:--all 排除 git 日志 git
  • 更新时间 :
  • 英文 :


我想通过 git log 检查主命名空间(即 refs/heads/*)中的所有提交,即排除 refs/remote、refs/original 等。有没有一个简单的命令来实现这一点?

试试这个:

git log --all --not --remotes=*

感谢Sunlis的提示,我发现这有效:

git log --branches=*

在 2.39.0 版git什么对我有用:

git log --decorate-refs-exclude=refs/remotes --all

最新更新