title: Xcode: "The working copy ____ has uncommitted changes" vs. git status: "nothing to commit, working directory clean"
body: <p>In Xcode 5.0.2, I try to pull from a remote and am given the following message:</p>
  
  <p>"The working copy 'project-name' has uncommitted changes. Commit or discard the changes and try again."</p>
  
  <p>Fair enough. I pull up the commit dialog, and am then given the message, "This file does not exist at the requested revision." Clicking 'OK' brings me on into the commit dialog. (There is no revision displayed in the right pane, presumably for the same reason I was given the most recent message.) Selecting the flat view, I see that there is only one modified file: <code>project.pbxproj</code>. I enter a commit message and click 'Commit 1 File'. When I then go to pull, I find that I am in exactly the same position as before--the same messages appear and I am unable to pull (or push) no matter how many times I make a commit.</p>
  
  <p>Curious, I run <code>git diff</code> to see <em>just</em> what has changed. Nothing. <code>git status</code> provides me with equally helpful output: <code>nothing to commit, working directory clean</code>. <code>git push</code> or <code>git pull</code>? Yep, those work just fine from the command line.</p>
  
  <p>So what gives? Why does Xcode insist that I have changes in my working directory? Why won't it tell me what they are? Have tried restarting Xcode and system. While I'm happy that I still have <em>some</em> way to push and pull, it would be really nice if the Xcode git integration was behaving nicely. Any ideas?</p>
  
  <p>I've found these similar questions, but none address this particular issue (or provide an acceptable solution):</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/11910228/cannot-push-pull-or-merge-git-working-copy-has-uncommited-changes">Cannot push, pull or merge git. &quot;Working copy has uncommited changes&quot;</a></li>
  <li><a href="https://stackoverflow.com/questions/16147433/commit-or-discard-the-changes-and-try-again">Commit or discard the changes and try again</a></li>
  <li><a href="https://stackoverflow.com/questions/6368818/git-pull-fails-you-have-unstaged-changes-git-status-nothing-to-commit-workin">Git pull fails: You have unstaged changes. Git status: nothing to commit (working directory clean)</a></li>
  <li><a href="https://stackoverflow.com/questions/12570098/xcode-version-controll-git-has-uncommitted-changes-just-after-commit">Xcode Version Controll GIT - has uncommitted changes, just after commit</a></li>
  <li><a href="https://stackoverflow.com/questions/11173261/xcode-says-uncommitted-changes-whenever-i-try-to-git-pull-or-push">Xcode says &quot;Uncommitted Changes&quot; Whenever I try to git pull or push</a></li>
  </ul>