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

前端 未结 30 2202
半阙折子戏
半阙折子戏 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:22

    Using this to push it to the remote upstream branch solved this issue for me:

    git push  master:origin/master
    

    The remote had no access to the upstream repo so this was a good way to get the latest changes into that remote

提交回复
热议问题