xcode - gitignore not ignoring file -


no matter put in .gitignore can not git ignore userinterfacestate.xcuserstate file below:

$ git status on branch master branch up-to-date 'origin/master'.  changes not staged commit:   (use "git add <file>..." update committed)   (use "git checkout -- <file>..." discard changes in working directory)      modified:   .gitignore     modified:  calfoo.xcodeproj/project.xcworkspace/xcuserdata/wcochran.xcuserdatad/userinterfacestate.xcuserstate 

i using/editing .gitignore file listed on this post. tried match pattern including exact pathname: calfoo.xcodeproj/project.xcworkspace/xcuserdata/wcochran.xcuserdatad/userinterfacestate.xcuserstate no avail.

this particular problem arises workflow xcode used create initial git repo , .gitignore file here added afterwards. more general answer ignoring tracked files in git can found this question (i guess never found post in search since didn't have "gitignore" in title).

you can ignore unversioned files file known git.

if want git track file, there no need tell git ignore it.

if don't want git track file use git rm , ignore rule start working.

caution: git rm remove file. use git rm --cached remove repo not disk.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -