mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 03:15:23 +02:00
Merge pull request #378 from charlestang/master
2 tricks about git: git pull --rebase and git clone --depth
This commit is contained in:
commit
1f36ca63bc
2 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue