2013-11-04 61 views
0

當我嘗試使用git push origin master命令時,終端會拋出一個錯誤,指出文件太大。git push master not working files too too

remote: error: GH001: Large files detected. 
remote: error: Trace: 44baa062afa347dd9f954a2f0809b535 
remote: error: See http://git.io/iEPt8g for more information. 
remote: error: File vendor/bundle/gems/libv8-3.11.8.17-x86_64-darwin- 
12/vendor/v8/out/x64.release/libv8_base.a is 127.87 MB; 
this exceeds GitHub's file size limit of 100 MB 
To [email protected]:aTylerRice/mixeddrinks.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:aTylerRice/mixeddrinks.git' 

這是因爲我不應該包括某些文件被推?如果是的話,推送時如何忽略這些文件?

+1

是的。你有沒有看過第三行的網址?他們在那裏有幫助。 – Jokester

+0

第三行轉到:https://help.github.com/articles/working-with-large-files – jeff

+0

[Github文件大小限制改爲6/18/13。現在不能推](http://stackoverflow.com/questions/17382375/github-file-size-limit-changed-6-18-13-cant-push-now) – linquize

回答

2

你應該在你的項目的頂層,只是讀取

vendor

這將導致GIT中完全忽略vendor目錄的內容一行到的.gitignore。你可能想要那個。

(另外,順便說一句:你可能需要了解爲什麼vendor/bundle目錄甚至存在這通常是你在部署模式下運行捆紮機這是略有不尋常的一個開發者的標誌,即bundle install --deployment你知道你或你的團隊爲什麼這樣做嗎?)

+0

我的供應商線到我的.gitignore文件,它似乎仍然包括這些文件。 Tbh我只是一個大學生,爲了好玩而構建這些東西,我不知道甚至有一種部署模式。我應該改變它到不同的模式? – Tyler

0

想一想: 在日誌裏我看到libv8-3.11.8.17-x86_64-darwin- 12 - 它的lib的OS X,但在Web服務器上,你可能使用Ubuntu的/ debian/freebsd內核 什麼在你的github庫存儲lib的ker nel不同於你的服務器。