Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 and Branches

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

like image 380
Johan de Klerk Avatar asked Dec 01 '25 02:12

Johan de Klerk


1 Answers

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"
like image 110
Johan de Klerk Avatar answered Dec 02 '25 20:12

Johan de Klerk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!