It can be as brief as:

ssh server git --bare init myrepo.git

git clone server:myrepo.git

You can even support Actions with this method if you're not afraid of a little scripting. https://git-scm.com/book/ms/v2/Customizing-Git-Git-Hooks

> git clone server:myrepo.git

or if your local repo existed first:

  git remote add server server:myrepo.git
  git push -u server @

Beautiful !