xcode - Can't ignore UserInterfaceState.xcuserstate -
i'm using git xcode 4 project version control. i've explicitly added projectfolder.xcodeproj/project.xcworkspace/xcuserdata/myusername.xcuserdatad/userinterfacestate.xcuserstate .gitignore, git won't ignore it. ideas why so?
git tracking file.
from gitignore docs:
to stop tracking file tracked, use git rm --cached.
use this, replacing [project] , [username] info:
git rm --cached [project].xcodeproj/project.xcworkspace/xcuserdata/[username].xcuserdatad/userinterfacestate.xcuserstate git commit -m "removed file shouldn't tracked" alternatively can use -a option git commit add files have been modified or deleted.
once you've removed file git, respect .gitignore.
Comments
Post a Comment