huggie
huggie

Reputation: 18247

Git ignore files which I do not want it to

I have a directory named "Build" (from Carthage) which appears to be ignored by Git. I really do not want it to. I tried to add one file in the directory individually, it said:

The following paths are ignored by one of your .gitignore files:
platforms/ios/Carthage/Build/iOS/Zip.framework/Zip
Use -f if you really want to add them.

But I checked my .gitignore it does not seem to do have such a rule.

What exactly has happened?

EDIT:

This is my gitignore:

*.swp
tags
.DS_Store
*.xcuserstate
project.xcworkspace/
xcuserdata/
*.espressostorage
Makefile

Upvotes: 1

Views: 382

Answers (1)

Akram Fares
Akram Fares

Reputation: 1683

There is 3 ignore files on git:

  • $HOME/.config/git/ignore
  • $GIT_DIR/info/exclude
  • .gitignore

You can check what file is ignoring your file:

git check-ignore --verbose platforms/ios/Carthage/Build/iOS/Zip.framework/Zip

Then you delete the rule.

Upvotes: 2

Related Questions