0

When using git add --all, .gitignore does not get added to staging. So then I try to manually add .gitignore like this

$ git add .gitignore
The following paths are ignored by one of your .gitignore files:
.gitignore
Use -f if you really want to add them.

So I have to use -f to force add .gitignore which is annoying

sdfsdf
  • 3,149
  • 3
  • 25
  • 52

1 Answers1

2

Delete .gitignore entry from the .gitignore file.

Grzegorz Górkiewicz
  • 3,993
  • 4
  • 19
  • 35
  • .gitignore isn't in the .gitignore. Just Pods/ for an iOS project – sdfsdf Feb 23 '17 at 03:01
  • @MichaelL `.gitignore` is in some `.gitignore` file. You can run `git check-ignore -v .gitignore` in order to see which `.gitignore` file ignores that `.gitignore` file. – Alderath Feb 23 '17 at 10:15