一、
使用git status可以查看文件是否已经提交
> git status
On branch refactor
Your branch is ahead of 'origin/refactor' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
二、要看哪些提交在远程不存在,可以试试这个命令,看哪些提交在哪些分支上有(而另外的分支上没有):
git show-branch -a --color=always