Can you explain what is wrong with this workflow?
$ git init --bare bare Initialized empty Git repository in /work/fun/git_experiments/bare/ $ git clone bare
git push --all
is the canonical way to push everything to a new bare repository.
Another way to do the same thing is to create your new, non-bare repository and then make a bare clone with
git clone --bare
then use
git remote add origin
in the original (non-bare) repository.