Git push error '[remote rejected] master -> master (branch is currently checked out)'

前端 未结 30 2266
半阙折子戏
半阙折子戏 2020-11-22 00:07

Yesterday, I posted a question on how to clone a Git repository from one of my machines to another, How can I \'git clone\' from another machine?.

I am now

30条回答
  •  花落未央
    2020-11-22 00:39

    I'm sure most people viewing this question will stop at the first two huge answers, but I'd still like to offer my solution.

    I had an Eclipse + EGit web project setup when encountering the described error. What helped me was simply using the GitHub app, which seemed to magically resolve the issue. While EGit would always refuse the push, the GitHub desktop app would just shrug its shoulders and push my changes. Maybe it handles the multi-login-situation more gracefully.

提交回复
热议问题