Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-18 00:18:35 +00:00
parent 9cdd033c95
commit a9720510d1
43 changed files with 362 additions and 132 deletions

View File

@@ -18,15 +18,15 @@ source: https://github.com/tldr-pages/tldr.git
- Clone only the `.git` directory of an existing repository:
`git clone --no-checkout {{remote_repository_location}}`
`git clone {{[-n|--no-checkout]}} {{remote_repository_location}}`
- Clone a local repository:
`git clone --local {{path/to/local/repository}}`
`git clone {{[-l|--local]]} {{path/to/local/repository}}`
- Clone quietly:
`git clone --quiet {{remote_repository_location}}`
`git clone {{[-q|--quiet]}} {{remote_repository_location}}`
- Clone an existing repository only fetching the 10 most recent commits on the default branch (useful to save time):
@@ -34,8 +34,8 @@ source: https://github.com/tldr-pages/tldr.git
- Clone an existing repository only fetching a specific branch:
`git clone --branch {{name}} --single-branch {{remote_repository_location}}`
`git clone {{[-b|--branch]}} {{name}} --single-branch {{remote_repository_location}}`
- Clone an existing repository using a specific SSH command:
`git clone --config core.sshCommand="{{ssh -i path/to/private_ssh_key}}" {{remote_repository_location}}`
`git clone {{[-c|--config]}} core.sshCommand="{{ssh -i path/to/private_ssh_key}}" {{remote_repository_location}}`