このエラーが出る:
error: unable to push to unqualified destination: hoge
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to <remote>
原因はdetachで作業してたからでした。
一度
git checkout -B hoge
してから
git push origin HEAD:hoge
でやったら行けました