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

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

    I like the idea of still having a usable repository on the remote box, but instead of a dummy branch, I like to use:

    git checkout --detach
    

    This seems to be a very new feature of Git - I'm using git version 1.7.7.4.

提交回复
热议问题