Xcode4 布置Git环境Your working copy is out of date. Try pulling from the remote to get the latest change

来源:互联网 发布:开酒店的数据分析 编辑:程序博客网 时间:2024/06/04 18:12

     今天布置环境的时候发现一个问题:Your working copy is out of date. Try pulling from the remote to get the latest changes, then push again.网上找了很多地方,全是英文的。。我滴个深深的去!!~ ~ = =,我天朝居然还没有人遇到过这个,好吧,自己想了想,发现貌似是由于自己remote中的名字和gitHub中的名字不一致,于是删掉重新改,然后把readme文件删掉,把.gitignore文件也删掉了,终于可以了!!




后话:后面经过试验发现果然是readme的问题,gitHub下新建了一个repository后取消了初始新建readme文件,重新push一遍,搞定!


ps:后来证明前面两个的思路都是错的,英文提示说的很清楚,要先pulling changes,然后在push,就可以了!
原创粉丝点击