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

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

    I'm unfamiliar with the .xcuserstate file, but it sounds like a user-specific file. Generally user-specific files have no business in source control. They change frequently, generally are binary and thus difficult to diff, and aren't helpful to other users. Try closing down your IDE then running the commands or try adding this file name to your .gitignore file.

提交回复
热议问题