mirror of https://github.com/CrimsonTome/tldr.git
Merge pull request #378 from charlestang/master
2 tricks about git: git pull --rebase and git clone --depthwaldyrious/alt-syntax
commit
1f36ca63bc
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
Loading…
Reference in New Issue