Py学习  »  Git

git将分离的头推送到remote的dev分支

Algebra • 5 年前 • 1714 次点击  

什么时候? git push 对于dev分支的远程repo,它报告

[detached HEAD 0091d9a] 2019-10-27 14:13:10
 1 file changed, 1 deletion(-)
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use

    git push origin HEAD:<name-of-remote-branch>

审查分支机构

-  (press RETURN)
* (HEAD detached from be1d973)
  develop
  master

我应该跑吗

git push origin HEAD:develop

推动它目前的修改发展分公司?我害怕潜在的损害。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/47963
 
1714 次点击  
文章 [ 2 ]  |  最新文章 5 年前