2010-09-12 123 views
1

如何解決這個問題,並得到它停止發生軌登錄問題

衝突(刪除/修改):日誌/ development.log在eccc398bb3058c5c0cc9e3587aae93289597fc0f刪除和修改HEAD。 log/development.log的版本HEAD留在樹中。

我在.gitignore

回答

5

刪除它並提交它。

git rm log/development.log 
git commit -m "Removed development log file which was supposed to be ignored." 
git push 

現在檢查並確保您的.gitignore文件設置正確。

touch log/development.log 
git add log/development.log 

,你應該得到的混帳這回:

The following paths are ignored by one of your .gitignore files: 
log/development.log 
Use -f if you really want to add them. 
fatal: no files added 

如果你沒有得到這個,你.gitignore文件不正確。如果你有正確的輸出,那麼有人可能已經提交日誌文件的唯一方法是,如果他們改變了他們的.gitignore(本地或覆蓋忽略全局core.excludesfile),或者他們使用-f開關強制它。