Cannot push, pull or merge git. “Working copy has uncommited changes”

后端 未结 5 1448
一个人的身影
一个人的身影 2020-12-14 12:50

I have recently set up a git repository on bitbucket, and have added an old project onto it. I have committed and pushed a change as a test, but now I face this problem.

5条回答
  •  鱼传尺愫
    2020-12-14 13:10

    git rm --cached *.xcuserstate *.xcuserdata
    

    Run the above command. Then commit, then push.

    See here: Xcode says "Uncommitted Changes" Whenever I try to git pull or push

    You may need to run them separately :

    git rm --cached *.xcuserstate
    git rm --cached *.xcuserdata
    

提交回复
热议问题