fatal: You are not currently on a branch. To push the history leading to the current (detached HEAD)
git push$ git pushfatal: You are not currently on a branch.To push the history leading to the current (detached HEAD)state now, usegit status$ git statusHEAD detached from da74766nothing...
文章共77字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
git push
$ git push
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use
git status
$ git status
HEAD detached from da74766
nothing to commit, working tree clean
branch
$ git branch -a
* (HEAD detached from da74766)
master
remotes/origin/HEAD -> origin/master
remotes/origin/develop
remotes/origin/hotfix
只好这样了
$ git push origin HEAD:develop
实在不行只有先备份代码重新 clone一份了
更多推荐
已为社区贡献1条内容
所有评论(0)