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

前端 未结 4 869
不知归路
不知归路 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 04:59

    Remember that Git is a distributed source control system. People don't have to pull from the central repository that you're pushing to - in certain workflows they can pull their changes directly from you. In those cases, rewriting your history can certainly cause the problems you're talking about

提交回复
热议问题