search

Home  >  Q&A  >  body text

git push cannot be submitted


git gush submission always reports Everything up-to-date
Do git add before submission. And git commit - m

曾经蜡笔没有小新曾经蜡笔没有小新2770 days ago699

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:37:41

    看那一行红字。搜下

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:37:41

    Why did my Git repo enter a detached HEAD state?

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-02 09:37:41

    You are on Windows system, right? Why F:testGitdrag>doesn’t it show what branch you are under? Judging from your tip, there is a problem here

    HEAD detached from 515389f
    nothing to commit, working directory clean

    You can try the following execution

    git reset --hard e3f1e37
    git push --force origin 你的分支

    reply
    0
  • PHPz

    PHPz2017-05-02 09:37:41

    The reason is that you are not currently on any branch.
    You can switch through git checkout master first.

    reply
    0
  • Cancelreply