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

后端 未结 5 1450
一个人的身影
一个人的身影 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:20

    Step 1:

    git rm --cached ProjectName.xcodeproj/project.xcworkspace/xcuserdata/username.xcuserdatad/UserInterfaceState.xcuserstate
    

    Step 2:

    git commit -m "Removed file that shouldn't be tracked"
    

提交回复
热议问题