Merge pull request #378 from charlestang/master
2 tricks about git: git pull --rebase and git clone --depth
This commit is contained in:
@@ -13,3 +13,7 @@
|
|||||||
- Do it quietly
|
- Do it quietly
|
||||||
|
|
||||||
`git clone -q`
|
`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}}`
|
||||||
|
@@ -6,6 +6,10 @@
|
|||||||
|
|
||||||
`git pull`
|
`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
|
- Download changes from given remote repository and branch, then merge them into HEAD
|
||||||
|
|
||||||
`git pull {{remote_name}} {{branch}}`
|
`git pull {{remote_name}} {{branch}}`
|
||||||
|
Reference in New Issue
Block a user