Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-17 00:22:45 +00:00
parent 38ecb2b6c5
commit 42c0c33dde
259 changed files with 1079 additions and 386 deletions

View File

@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
- Add a Git repository as a subtree:
`git subtree add {{[-P|--prefix]}} {{path/to/directory/}} --squash {{repository_url}} {{branch_name}}`
`git subtree add {{[-P|--prefix]}} {{path/to/directory}}/ --squash {{repository_url}} {{branch_name}}`
- Update subtree repository to its latest commit:
`git subtree pull {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{branch_name}}`
`git subtree pull {{[-P|--prefix]}} {{path/to/directory}}/ {{repository_url}} {{branch_name}}`
- Merge recent changes up to the latest subtree commit into the subtree:
`git subtree merge {{[-P|--prefix]}} {{path/to/directory/}} --squash {{repository_url}} {{branch_name}}`
`git subtree merge {{[-P|--prefix]}} {{path/to/directory}}/ --squash {{repository_url}} {{branch_name}}`
- Push commits to a subtree repository:
`git subtree push {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{branch_name}}`
`git subtree push {{[-P|--prefix]}} {{path/to/directory}}/ {{repository_url}} {{branch_name}}`
- Extract a new project history from the history of a subtree:
`git subtree split {{[-P|--prefix]}} {{path/to/directory/}} {{repository_url}} {{[-b|--branch]}} {{branch_name}}`
`git subtree split {{[-P|--prefix]}} {{path/to/directory}}/ {{repository_url}} {{[-b|--branch]}} {{branch_name}}`