update rebase-by-default-when-doing-git-pull config recipes

This commit is contained in:
guanqingwen
2016-07-14 21:05:29 +08:00
parent e7cfd7e192
commit a822f0f069

View File

@ -203,7 +203,8 @@ git pull --rebase <remote>
事实上,使用`--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`。
@ -291,4 +292,4 @@ git push origin master
>
> 如果你觉得文章对你有帮助,欢迎点击右上角的***Star***:star2:或***Fork***:fork_and_knife:。
>
> 如果你发现了错误,或是想要加入协作,请参阅[Wiki协作说明](https://github.com/geeeeeeeeek/git-recipes/issues/1)。
> 如果你发现了错误,或是想要加入协作,请参阅[Wiki协作说明](https://github.com/geeeeeeeeek/git-recipes/issues/1)。