我的.gitignore
文件:
.DS_Store
temp
!temp/script.txt
但是,当我这样做时git status
,它不会显示temp/
目录以指示该目录script.txt
未上演。它只显示.gitignore
文件:
# 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
我只是在学习git。知道我哪里出错了吗?