diff --git a/pages/common/git-clone.md b/pages/common/git-clone.md index c8425c5434..ae355a2879 100644 --- a/pages/common/git-clone.md +++ b/pages/common/git-clone.md @@ -13,3 +13,7 @@ - Do it quietly `git clone -q` + +- Clone an existing repository, and truncate to the specified number of revisions, save your time mostly + +`git clone --depth 10 {{REMOTE-REPOSITORY-LOCATION}}` diff --git a/pages/common/git-pull.md b/pages/common/git-pull.md index 49a69948ef..5f5188a78f 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}}`