当你git status时,出现如下:
On branch xxx
Your branch is ahead of ‘xxx’ by 1 commit.
(use “git push” to publish your local commits)
nothing to commit, working directory clean
一开始,百度了很多文章 ,都说要git push origin xxx之后,就会解决掉;
但是,我并不想去git push任何东西,当出现这个问题之后,可以尝试一下git pull,同步一下,可以解决。
如下:git status
解决:git pull