Prevent .git directory from being deleted