My repo includes a mix of file type including .csv
. When I do git add .
and then git status
, I see:
git status
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
(use "git push" to publish your local commits)
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: .ipynb_checkpoints/dpm-checkpoint.ipynb
new file: .ipynb_checkpoints/dp-checkpoint.ipynb
modified: App Data/dfr.csv
The csv
files are rather large and rejected by git.
git push origin master
Enumerating objects: 852, done.
Counting objects: 100% (852/852), done.
Delta compression using up to 8 threads
Compressing objects: 100% (839/839), done.
Writing objects: 100% (842/842), 373.87 MiB | 7.10 MiB/s, done.
Total 842 (delta 26), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (26/26), completed with 5 local objects.
remote: warning: File App Data/dfr.csv is 95.38 MB; this is larger than GitHub's recommended maximum file size of 50.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/ks/SP.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/ks/SP.git'
How do I either compress the csv
files using git and then push them or skip csv file types altogether?