git pull --rebase vs git rebase : what's the danger?

后端 未结 2 1692
独厮守ぢ
独厮守ぢ 2021-02-02 06:56

I don\'t understand the difference between git pull --rebase and git rebase, without any other options.

I don\'t understand if they are safe, a

2条回答
  •  忘掉有多难
    2021-02-02 07:30

    git pull --rebase is a shorthand for git fetch and then a plain git rebase, as opposed as to the default git merge. The practical difference is that applying only the latter would not fetch any new commits from your remote prior to rebasing your code on top of, as it would only take into account what your local repository's already aware of.

    It's also worth mentioning that merging conflicts would appear in the same way as a regular git pull.

提交回复
热议问题