This question is locked. New answers and comments are not allowed.
Hey all,
I've been playing with a NativeScript CLI project and decided I wanted to put it into source control. I naively added all files, and attempted to push and I got the error below:
$ git push origin master
Counting objects: 521, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (468/468), done.
Writing objects: 100% (521/521), 103.11 MiB | 2.46 MiB/s, done.
Total 521 (delta 99), reused 0 (delta 0)
remote: warning: File platforms/ios/build/device/grocery-list.app.dSYM/Contents/Resources/DWARF/grocery-list is 50.59 MB; this is larger than GitHub's recommended maximum file size of 50 MB
remote: error: GH001: Large files detected.
remote: error: Trace: 6f7f6c31f845a8e22d2205209c8e794c
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File platforms/ios/NativeScript.framework/NativeScript is 288.12 MB; this exceeds GitHub's file size limit of 100 MB
To git@github.com:tjvantoll/grocery-list.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@github.com:tjvantoll/grocery-list.git'
Basically GitHub says there are some huge files in the project and won't let me push. The weird thing is I can't find the files that git refers to as being too big.
For now I'm excluding the platforms folder via .gitignore, which works, but I'm guessing this isn't something we want to recommend, as you could have platform-specific changes in that folder (aka changes that `tns platform add android/ios` won't add back). Correct me if I'm wrong.
So what I'm wondering is 1) has anyone ran into this GitHub problem? and 2) do we have a recommended .gitignore to exclude the output of builds from source control?
Thanks,
TJ
I've been playing with a NativeScript CLI project and decided I wanted to put it into source control. I naively added all files, and attempted to push and I got the error below:
$ git push origin master
Counting objects: 521, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (468/468), done.
Writing objects: 100% (521/521), 103.11 MiB | 2.46 MiB/s, done.
Total 521 (delta 99), reused 0 (delta 0)
remote: warning: File platforms/ios/build/device/grocery-list.app.dSYM/Contents/Resources/DWARF/grocery-list is 50.59 MB; this is larger than GitHub's recommended maximum file size of 50 MB
remote: error: GH001: Large files detected.
remote: error: Trace: 6f7f6c31f845a8e22d2205209c8e794c
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File platforms/ios/NativeScript.framework/NativeScript is 288.12 MB; this exceeds GitHub's file size limit of 100 MB
To git@github.com:tjvantoll/grocery-list.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@github.com:tjvantoll/grocery-list.git'
Basically GitHub says there are some huge files in the project and won't let me push. The weird thing is I can't find the files that git refers to as being too big.
For now I'm excluding the platforms folder via .gitignore, which works, but I'm guessing this isn't something we want to recommend, as you could have platform-specific changes in that folder (aka changes that `tns platform add android/ios` won't add back). Correct me if I'm wrong.
So what I'm wondering is 1) has anyone ran into this GitHub problem? and 2) do we have a recommended .gitignore to exclude the output of builds from source control?
Thanks,
TJ