Vanuatu-National-Statistics-Office / vnso-RAP-consumerPriceIndexStats-materials

GNU General Public License v3.0
0 stars 0 forks source link

Troubling pushing cpi prices codes to github #19

Open vsahe opened 3 years ago

vsahe commented 3 years ago

Hi Joe,

Alice and i have done calculations on prices for cpi for periods 2008 to 2009 . We committed and push but there is an error, not sure the reason why is it because to many files or not sure. We tried checking the in GIthub we have not recieved it.

Below is the error appearing on the screen when trying to push.

C:/Program Files/Git/bin/git.exe push origin HEAD:refs/heads/forthnight-price-calculations remote: error: Trace: a554983d3f43a938a9aee2ffab8432dda64bad9307deb037b9dc9e5a34344e93
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File data/secure/imports_HS_summaryStats_02-10-20.csv is 212.13 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To https://github.com/Vanuatu-National-Statistics-Office/vnso-RAP-consumerPriceIndexStats-materials.git ! [remote rejected] HEAD -> forthnight-price-calculations (pre-receive hook declined) error: failed to push some refs to 'https://github.com/Vanuatu-National-Statistics-Office/vnso-RAP-consumerPriceIndexStats-materials.git'

we need assistance

regards

JosephCrispell commented 3 years ago

Hi @vsahe,

Thanks for the question. The error you are getting is caused by git trying to push a file that exceeds the file size limie of 100MB. The imports_HS_summaryStats_02-10-20.csv file in the data\secure\ folder is the file that is too large - it is 212.13MB.

You can stop the imports_HS_summaryStats_02-10-20.csv file being pushed onto GitHub by removing it from the staged area in RStudio (click the tickbox beside that file) or in the terminal by running:

git restore --staged data/secure/imports_HS_summaryStats_02-10-20.csv

Now you should be able to push your changes to GitHub - let me know how you get on!

🛑

Importantly, no files in the data/secure/ folder should be being pushed online. I would add the following line into the end of the .gitignore file and then push the changes online to avoid any files being accidentally pushed in the future.

data/secure/*

🛑

Let me know if the above makes sense and thanks again for the question.

Joe