It seems to re-read the Internet, I do not understand a little. Supposedly there will be no error with the bare repository. I, in principle, will be satisfied with such a repository. What better way to do?

  • I did not understand, honestly. As far as I understand, the error says that in the remote repository to which the push is being made, the specified brunch is checkout (from T. Gita - currently edited), so it cannot be updated. To resolve this situation, it is enough to switch to another brunch in a remote repository. - etki

1 answer 1

You don't seem to have a bare repository, but a regular one. You can go to the detached HEAD state:

git checkout --detach