Replacing data after git error