Git日志:未来修订的日志

Pla*_*Ton 15 git

当我检查以前提交的git存储库时,'git log'不再显示在当前检出的提交之后提交的提交.

所以,问题是:如何在当前签出的提交之后获取提交日志?

phi*_*hag 22

您可以使用该--all标志查看所有修订,如

git log --all
Run Code Online (Sandbox Code Playgroud)

如果您只是对未来的修订感兴趣,您也可以使用

git log ..@{1}      # assuming you just switched from the future master
git log ..abcdef    # assuming abcdef is the newest future commit
Run Code Online (Sandbox Code Playgroud)