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

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

    For me working solution is:

    ON REMOTE:

    git checkout -b some_tmp_name
    

    ON LOCAL:

    git push
    

    ON REMOTE:

    git checkout master
    git branch -d some_tmp_name
    

    But this is not the real solution it's just workaround.

提交回复
热议问题