Update cheatsheets

This commit is contained in:
ivuorinen
2024-12-19 00:18:26 +00:00
parent c1ac284c8b
commit bab9389d4f
4 changed files with 40 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cut
> Cut out fields from `stdin` or files.
> More information: <https://www.gnu.org/software/coreutils/cut>.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/cut-invocation.html>.
- Print a specific [c]haracter/[f]ield range of each line:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# date
> Set or display the system date.
> More information: <https://www.gnu.org/software/coreutils/date>.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html>.
- Display the current date using the default locale's format:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# echo
> Print given arguments.
> More information: <https://www.gnu.org/software/coreutils/echo>.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/echo-invocation.html>.
- Print a text message. Note: quotes are optional:

37
tldr/lazygit Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# lazygit
> A simple terminal UI for Git commands, providing an intuitive interface for managing repositories.
> More information: <https://github.com/jesseduffield/lazygit>.
- Open Lazygit in the current repository:
`lazygit`
- Open Lazygit for a specific Git repository:
`lazygit --path {{path/to/repository}}`
- Start Lazygit with focus on a specific panel:
`lazygit {{status|branch|log|stash|...}}`
- Print the default Lazygit configuration:
`lazygit --config`
- Tail the Lazygit logs (useful with debug mode in another terminal):
`lazygit --logs`
- Run Lazygit in debug mode:
`lazygit --debug`
- Print the configuration directory:
`lazygit --print-config-dir`