'desktop.ini' prevents git garbage collector to repack

351 Views Asked by At

I imagine that it is not a good practice to have your git repositories on a Google Drive mounted on Windows system because the infamous desktop.ini file will popup everywhere (here's a post of 2015).

When a team member tries to run the garbage collector (with or without prune: it doesn't make any difference) the below is the result:

git gc

Does anyone know how to prevent git to interpret the desktop.ini file as part of its config and reference files?

  • Note: please abstain to answer things like changing a registry entry, install this application/patch or disable this in windows settings. We assume we cannot get rid of the desktop.ini file. We just want to have things working normally even with its presence (if that could be possible).
0

There are 0 best solutions below