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

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

    My solution (in use)

    1. Checkout "master" on remote server
    2. Work locally on "dev" branch
    3. Push changes to remote dev
    4. Merge dev into master on remote

    bingo

提交回复
热议问题