couldnt set refs origin main code example Example: error: couldn't set 'refs/remotes/origin/master' echo ref: refs/heads/master >.git/HEAD