When will `git pull --rebase` get me in to trouble?

前端 未结 4 852
不知归路
不知归路 2020-11-30 04:55

I understand that when I use git pull --rebase, git will re-write history and move my local commits to occur after all of the commits in the branch I just pulle

4条回答
  •  死守一世寂寞
    2020-11-30 05:08

    Commit to a branch. Push. Merge up to another branch (say you're maintaining two baselines, a patch branch and a new-development branch). Realize other commits have been pushed to the server branch yours is tracking. pull --rebase. Suddenly you've re-made each of the commits against the new hash - and destroyed the merge commit.

提交回复
热议问题