Last active
August 29, 2015 14:18
-
-
Save satomixx/21dd3fadd705d874640c to your computer and use it in GitHub Desktop.
Git push がやたら落ちていると思ったら、ファイルサイズ・数がやたら多かった場合 ref: http://qiita.com/tsumekoara/items/bc2cd32b6cd0ea626f36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git push origin master | |
Counting objects: 26593, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (24906/24906), done. | |
Writing objects: 100% (26593/26593), 157.41 MiB | 160.00 KiB/s, done. | |
Total 26593 (delta 4255), reused 0 (delta 0) | |
remote: error: GH001: Large files detected. | |
remote: error: Trace: | |
remote: error: See http://git.io/iEPt8g for more information. | |
remote: error: File vendor/bundle/ruby/2.2.0/gems/libv8-3.16.14.7-x86_64-darwin-14/vendor/v8/out/x64.release/libv8_base.a is 150.14 MB; this exceeds GitHub's file size limit of 100 MB | |
To git@github.com:hoge/hgoe.git | |
! [remote rejected] master -> master (pre-receive hook declined) | |
error: failed to push some refs to 'git@github.com:hoge/hoge.git' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rm -rf .git && git init | |
$ git add . | |
$ git commit -am "retry" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git push bb master | |
Counting objects: 135, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (118/118), done. | |
Writing objects: 100% (135/135), 162.30 KiB | 0 bytes/s, done. | |
Total 135 (delta 10), reused 0 (delta 0) | |
To | |
* [new branch] master -> master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# before | |
26593, 157.41 MiB | |
# after | |
135, 162.30 KiB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git rm -r --cached . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment