can't push to branch after rebase

前端 未结 6 610
走了就别回头了
走了就别回头了 2021-01-29 17:28

We use git and have a master branch and developer branches. I need to add a new feature and then rebase the commits to master, then push master to CI server.

The problem

6条回答
  •  猫巷女王i
    2021-01-29 18:21

    I agree with MrCholo, and maybe Trevor Norris could consider updating its good answer to replace

    git push -f origin devel0
    

    with

    git push --force-with-lease origin devel0
    

提交回复
热议问题