我想通过 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