diff --git a/sources/保持代码同步.md b/sources/保持代码同步.md index 1f15efa..22183a4 100644 --- a/sources/保持代码同步.md +++ b/sources/保持代码同步.md @@ -203,7 +203,8 @@ git pull --rebase 事实上,使用`--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)。 \ No newline at end of file +> 如果你发现了错误,或是想要加入协作,请参阅[Wiki协作说明](https://github.com/geeeeeeeeek/git-recipes/issues/1)。