由於Rails的tmp/cache/assets
文件夾和git沒有忽略tmp/*
或tmp/
,我有一些部署問題。我的整個.gitignore
是:Git忽略我的.gitignore在Rails項目上
*.rbc
*.sassc
.sass-cache
capybara-*.html
.rspec
/.bundle
/vendor/bundle
/log/*
/tmp/*
/db/*.sqlite3
/public/system/*
/coverage/
/spec/tmp/*
**.orig
rerun.txt
pickle-email-*.html
它從GitHub gitignore repo拍攝。我能做些什麼來解決它?我得到噸的錯誤是由於我的服務器上的局部變化(在tmp/
文件夾),如error: Your local changes to 'tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705' would be overwritten by merge. Aborting.
,所以我不能我開發機器:(上部署
你能否證實該文件夾中的文件不會上演了嗎?如果他們是你可能不得不取消他們。 – Dan 2012-03-04 10:53:40