所有的已经提交在本地了,就差最后push了
但push 之前如何确认一下我的修改呢?因为这是git log显示已经提交了,但是这是本地的,
如何显示出我与服务器俄差别,即我没有同步到服务器上的?

解决方案 »

  1.   

    执行这个命令,灭有显示~,能详细些吗?
    貌似执行这个就可以了:
    $ git status 
    # On branch master 
    # Your branch is ahead of 'origin/master' by 2 commits. 
      

  2.   

    git pull 一下 避免冲突
    再push上去
      

  3.   

    repo status 查看自己的修改
      

  4.   

    谢谢你的回答。
    为什老是repo,这不是google管理android源码的脚本吗?
    如果只是安装了git管理自己的code,没法使用这个命令吧
    $ repo status
    error: command 'status' requires repo to be installed first.
           Use "repo init" to install it here.