Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-06 00:19:54 +00:00
parent e452860d9b
commit 7e39fb6df5
49 changed files with 132 additions and 93 deletions

View File

@@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git
- Change an author's email and name across the whole Git repository:
`git reauthor --old-email {{old@example.com}} --correct-email {{new@example.com}} --correct-name "{{name}}"`
`git reauthor {{[-o|--old-email]}} {{old@example.com}} {{[-e|--correct-email]}} {{new@example.com}} {{[-n|--correct-name]}} "{{name}}"`
- Change the email and name to the ones defined in the Git config:
`git reauthor --old-email {{old@example.com}} --use-config`
`git reauthor {{[-o|--old-email]}} {{old@example.com}} {{[-c|--use-config]}}`
- Change the email and name of all commits, regardless of their original author:
`git reauthor --all --correct-email {{name@example.com}} --correct-name {{name}}`
`git reauthor {{[-a|--all]}} {{[-e|--correct-email]}} {{name@example.com}} {{[-n|--correct-name]}} {{name}}`