Is there a way to force git
to add a file despite the .gitignore
file?
Question
Answer
See man git-add
:
-f, --force
Allow adding otherwise ignored files.
So run this
git add --force my/ignore/file.foo
2022-04-08
Is there a way to force git
to add a file despite the .gitignore
file?
See man git-add
:
-f, --force
Allow adding otherwise ignored files.
So run this
git add --force my/ignore/file.foo