I am using Xcode 4.5 and Git for version control. I created a new branch and added some code to it. When I go to Organizer/My Repository and click on switch branch, I can't switch to a branch because I get the following error message :
Working copy is modified
Figured it out. I had to remove the xcuserstate and added it to my .gitignore
git rm --cached ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate
git commit -m "Removed file that shouldn't be tracked"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With