Feels like the type of problem you could simply choose to not have in the first place (by not using git).