当我的分支超前于远程仓库的分支时,我想查看git的提交记录。
我尝试了 git log
命令,它返回了所有的提交记录。但是,我只想查看从本地分支到origin/branch分支的超前提交记录
。
这就是我的意思。
在这种情况下,我想查看2个提交。On branch permissions Your branch is ahead of 'upstream/permissions' by 2 commits. (use "git push" to publish your local commits) nothing to commit, working directory clean
git log br_name...origin/br_name
命令 - 你忘记了...
。此外,你没有开发分支,这就是为什么第二个命令失败的原因。 - hspandher