I am using Enterprise GitHub and it has a threshold for file size.
If I ignore the file ./.git/objects/pack/pack-xxxxxxxxxxxxxxxxxxxxx.pack
when pushing the folder to GitHub, what will be the consequence?
I am using Enterprise GitHub and it has a threshold for file size.
If I ignore the file ./.git/objects/pack/pack-xxxxxxxxxxxxxxxxxxxxx.pack
when pushing the folder to GitHub, what will be the consequence?
The threshold applies to versioned files, before compression.
The .pack
files stored under .git/
are internal storage files, and are not versioned.
Github's doc page about large files implicitly talks about versioned files, you do not have to look at .pack files hidden under .git/
.
First, have a look at the large files in your code : check if you haven't committed a file which happens to be larger than your repo's size limit.
You can do this with the following command (run it in git bash
if you are running Windows) :
git ls-tree -r --long HEAD | sort --key 4 --numeric-sort --reverse | less
Second : look for large files in all of your repo's history. See for example this gist in github
.git
is the working directory for git. You should not add it in your repository (and obviously not push it).
You can learn more there : What is the .git folder?