I'm starting to use Git and for this project one file is appearing when I use git status.
I couldn't add it in .ignore file.
There is any way to not have when I use git status?
I'm starting to use Git and for this project one file is appearing when I use git status.
I couldn't add it in .ignore file.
There is any way to not have when I use git status?
The .gitglobalignores file in my home directory includes these lines:
xcuserdata
project.xcworkspace
Go ye and do likewise, and the problem will be solved.
The problem here is that you've already committed the xcuserstate
file, so it doesn't matter whether you add it to .gitignore
. You need to remove it from the repo to make it be ignored in the future. You should also add the .gitignore
file.
git rm -r --cached Quizzler.xcodeproj/project.xcworkspace/xcuserdata
git add .gitignore
git commit