Avoid git error messages when something goes wrong