当我这样做时git status
,它说nothing to commit, working directory clean
然后我做git pull --rebase
了,它说:
First, rewinding head to replay your work on top of it...
error: The following untracked working tree files would be overwritten by checkout:
includes/resources/moduledata/12/_Fr4_02_Invention_IPA_SR_la-Fête.pdf
Please move or remove them before you can switch branches.
Aborting
could not detach HEAD
执行时出现类似错误git pull origin master
* branch master -> FETCH_HEAD
error: The following untracked working tree files would be overwritten by merge:
includes/resources/moduledata/12/_Fr4_02_Invention_IPA_SR_la-Fête.pdf
Please move or remove them before you can merge.
Aborting
我的.gitignore
文件:
→ cat .gitignore
.htaccess
bower_components/
这个文件一直在出现,当我从文件系统中删除它时,git 会说我删除了这个文件,而在其他消息中,它说它是未跟踪的。怎么可能同时不被追踪和被追踪?