Merge pull request #13 from buaagg/rebase-by-default-when-doing-git-pull

update rebase-by-default-when-doing-git-pull config recipes
This commit is contained in:
Zhongyi Tong
2016-07-23 13:32:12 +08:00
committed by GitHub

View File

@ -203,7 +203,8 @@ git pull --rebase <remote>
事实上,使用`--rebase`的pull的工作流是如此普遍以致于你可以直接在配置项中设置它 事实上,使用`--rebase`的pull的工作流是如此普遍以致于你可以直接在配置项中设置它
``` ```
git config --global branch.autosetuprebase always git config --global branch.autosetuprebase always # In git < 1.7.9
git config --global pull.rebase true # In git >= 1.7.9
``` ```
在运行这个命令之后,所有的`git pull`命令将使用`git rebase,`而不是`git merge`。 在运行这个命令之后,所有的`git pull`命令将使用`git rebase,`而不是`git merge`。