First, you can check if a file is locally ignored ion your repo with git check-ignore
:
git check-ignore -v -- yourFile
Second, you can force to add that file (bypassing any ignore rule):
git add -f yourFile
First, you can check if a file is locally ignored ion your repo with git check-ignore
:
git check-ignore -v -- yourFile
Second, you can force to add that file (bypassing any ignore rule):
git add -f yourFile