'!' does not exclude file in .gitignore
my .gitignore file:
.DS_Store
temp
!temp/script.txt
However when I do git status it doesn't display the temp/ directory to
indicate that the script.txt is not in the staged. It only displays the
.gitignore file:
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: .gitignore
I'm just learning git. Any idea where i'm going wrong?
No comments:
Post a Comment