Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload Zip file on github and extract once uploaded

Tags:

github

zip

I am importing my project in github, due to its large size, its taking long. So I compressed my project and uploaded it on github.

Is there any way to extract it on github itself? I cant see anything in its UI but is there any command or script available?

like image 640
PlusInfosys Avatar asked Jan 03 '17 07:01

PlusInfosys


1 Answers

I experienced a similar problem, unfortunately, there isn't (to the best of my knowledge.). I was able to upload a large file to Github by using the git large file storage. (https://git-lfs.github.com/)

If you use Linux, here is the instruction:

quick install git-lfs (https://packagecloud.io/github/git-lfs/install)

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash

install the Git command line extension.

git lfs install

Select the extension of the large file types you'd like Git LFS to manage. For me, it was a ".pb " file from retraining the inception-v3 model.

git lfs track "*.pb"  #  change "pb" to the extension of your large file.

Make sure .gitattributes is tracked

git add .gitattributes

Finally, just commit and push to GitHub as you normally would.

git add retrain.pb  #  change "retrain.pb" to the name of your large file.
git commit -m "First commit"
git push origin master

Or you could just include all your files in the project dir.

git add .
git commit -m "First commit"
git push origin master
like image 112
Nuelsian Avatar answered Sep 28 '22 08:09

Nuelsian