Xcode: “The working copy ____ has uncommitted changes” vs. git status: “nothing to commit, working directory clean”

前端 未结 4 1831
无人及你
无人及你 2021-01-31 16:57

In Xcode 5.0.2, I try to pull from a remote and am given the following message:

\"The working copy \'project-name\' has uncommitted changes. Commit or discard the change

4条回答
  •  抹茶落季
    2021-01-31 17:25

    Okay, so I fixed my issue.

    With Xcode open:

    1. Open terminal - cd / to your project directory.
    2. Type in: "git reset --hard"
    3. Type in git status

    Restart Xcode and make a commit (Just a comment or something )

    Repeat the above steps.

    This sorted out my issue for me.

提交回复
热议问题