我不斷收到此錯誤:Git的樞紐GitIgnore錯誤
error: Your local changes to the following files would be overwritten by merge:
.gitignore
我如何使它忽略我的主目錄中的.gitignore文件?
我的.gitignore看起來像這樣和被忽略:
# Can also ignore all directories and files in a directory.
app/config/**
app/config/**/*
plugins/**
vendors/shells/**/*
爲什麼這是-1? – cdub
也許是因爲你提出了錯誤的問題(解決方案是不要忽略.gitignore文件)。這有點苛刻,但不要太擔心一個downvote。順便說一句,如果你使用gui進行git操作,或者有理由認爲.gitignore文件已經自動生成,那麼它就是精確的。 –
你是什麼意思「我的HOME目錄」? .gitignore文件必須位於git存儲庫中。你把你的linux家在git下? –