Android Studio Update Project: Merge vs Rebase vs Branch Default

后端 未结 6 589
一生所求
一生所求 2020-12-13 01:51

Apologies if this seems redundant as I know there are fair amount of questions regarding Merge vs Rebase, but there doesn\'t seem to be any that throw in \'Branch Default\'

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 02:09

    According to documentation:

    Merge: select this option to perform merge during the update. This is equivalent to running
    git fetch and then git merge, or git pull --no-rebase.

    Rebase: select this option to perform rebase during the update. This is equivalent to running
    git fetch and then git rebase, or `git pull --rebase (all local commits will be put on top of the updated upstream head).

    Branch Default: select this option if you want to apply different update strategies for different branches. You can specify the default update type for each branch in the branch. section of the .git/config configuration file.

    Merge vs Rebase

    Read more here

提交回复
热议问题