LoginSignup
3
2

More than 5 years have passed since last update.

git push HEAD:hoge で error: unable to push to unqualified destination

Last updated at Posted at 2015-04-25

このエラーが出る:

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

でやったら行けました

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2