2

I am having this random problem with source control on Xcode. I already had Git integrated with my project, but now it's not recognizing that changes have been made to some files and won't let me commit them.

The A never turns to M and the file does not get grayed out showing that it needs to be saved.

Nevik Rehnel
  • 49,633
  • 6
  • 60
  • 50
user1779598
  • 51
  • 1
  • 10
  • You need to commit file first, not just do the save. – zs2020 Feb 02 '13 at 01:06
  • I have noticed the same on my MAC. After I run the project sucessfully after save. I then try to Commit in XCODE - version Control and the .m was showing before save as M. But in commit , the comparison of the files is blank. Where in Terminal I have to be to make the GIT to work. – anwarma Mar 29 '13 at 21:15

1 Answers1

1

Generally 2 possibilities:

git  update-index --assume-unchanged -- /path/to/file
# Or:
git update-index --skip-worktree -- /path/to/file

The first check would be to see if a git status in a shell session shows the same issue (a modified file which wouldn't show in git status)

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250