From 431a5c8759f97f38f54791917ad5b9cf8dd0d682 Mon Sep 17 00:00:00 2001 From: Charles Tang Date: Fri, 25 Dec 2015 15:17:15 +0800 Subject: [PATCH] git-pull with rebase argument use rebase could cause a clean and linear history, it's a good habit. --- pages/common/git-pull.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/git-pull.md b/pages/common/git-pull.md index 49a69948e..0bd1d54e4 100644 --- a/pages/common/git-pull.md +++ b/pages/common/git-pull.md @@ -6,6 +6,10 @@ `git pull` +- Download changes from default remote repository and use fast forward + +`git pull --rebase` + - Download changes from given remote repository and branch, then merge them into HEAD `git pull {{remote_name}} {{branch}}`