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