wcochran
wcochran

Reputation: 10896

git not ignoring folder specified by .gitignore

I am using the .gitignore file from here but I still am still finding that

 CalFoo.xcodeproj/project.xcworkspace/xcuserdata/wcochran.xcuserdatad/UserInterfaceState.xcuserstate

is staged for a commit?

Why isn't the folder xcuserdata excluded?

Upvotes: 1

Views: 1857

Answers (1)

FreeGor
FreeGor

Reputation: 624

Did you already commit after adding .gitignore to tracking files?

git rm -r --cached .

git add .

git commit -m ".gitignore is now should working"

Upvotes: 4

Related Questions