What's the difference between `git fetch` then `git rebase`, and `git pull --rebase`?

前端 未结 3 602
终归单人心
终归单人心 2020-12-04 08:58

In reading the git pull page, it gives this stern warning about git pull --rebase:

This is a potentially dangerous mode of o

3条回答
  •  一生所求
    2020-12-04 09:28

    In addition to updating your local branch from its remote tracking branch, the -pull updates your workspace files.

    So it's probably more typical to git pull --rebase (or configure pull to use rebase by default) than to git fetch; git rebase.

提交回复
热议问题