如何查看未推送到远程分支的所有本地提交?

时间:2015-06-02 16:26:11

标签: git bitbucket

我使用以下命令查看未推送到远程分支的所有本地提交,但我没有获得所有这些本地提交。

public void removeSubPanel() {
    // TODO: check that the list isn't empty first
   this.remove( subPanels.remove(0) );
}

我想看到至少10个本地提交(仅限本地)。

1 个答案:

答案 0 :(得分:61)

这将显示所有未推送所有分支的提交

git log --branches --not --remotes

这将显示您所有的本地提交

git log origin/master..HEAD
相关问题