I am trying to add all the files to my git index using
git add -A
However, there is one directory with very large files that is causing this error:
fatal: confused by unstable object source data for 9f8c02a8d2a04d7fffed08b299a0cb8996ab7ecb
Therefore, the adding process is broken! How can I tell git I want to exclude this directory while adding everything else? Available online solutions first add everything and then remove some files. Obviously, I cannot do this because git crashes while adding the files in that specific directory.
gitignore
.git status
) and never usegit commit -a
git status
I think it's fine to dogit add .
, it's more efficient than manually adding files/folders.