mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-01 14:54:22 +00:00
Update cheatsheets
This commit is contained in:
34
tldr/git
34
tldr/git
@@ -6,29 +6,37 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# git
|
# git
|
||||||
|
|
||||||
> Distributed version control system.
|
> Distributed version control system.
|
||||||
> Some subcommands such as `commit`, `add`, `branch`, `checkout`, `push`, etc. have their own usage documentation.
|
> Some subcommands such as `commit`, `add`, `branch`, `switch`, `push`, etc. have their own usage documentation.
|
||||||
> More information: <https://git-scm.com/docs/git>.
|
> More information: <https://git-scm.com/docs/git>.
|
||||||
|
|
||||||
- Execute a Git subcommand:
|
- Create an empty Git repository:
|
||||||
|
|
||||||
`git {{subcommand}}`
|
`git init`
|
||||||
|
|
||||||
- Execute a Git subcommand on a custom repository root path:
|
- Clone a remote Git repository from the internet:
|
||||||
|
|
||||||
`git -C {{path/to/repo}} {{subcommand}}`
|
`git clone {{https://example.com/repo.git}}`
|
||||||
|
|
||||||
- Execute a Git subcommand with a given configuration set:
|
- View the status of the local repository:
|
||||||
|
|
||||||
`git -c '{{config.key}}={{value}}' {{subcommand}}`
|
`git status`
|
||||||
|
|
||||||
- Display help:
|
- Stage all changes for a commit:
|
||||||
|
|
||||||
`git {{[-h|--help]}}`
|
`git add {{[-A|--all]}}`
|
||||||
|
|
||||||
- Display help for a specific subcommand (like `clone`, `add`, `push`, `log`, etc.):
|
- Commit changes to version history:
|
||||||
|
|
||||||
`git help {{subcommand}}`
|
`git commit {{[-m|--message]}} {{message_text}}`
|
||||||
|
|
||||||
- Display version:
|
- Push local commits to a remote repository:
|
||||||
|
|
||||||
`git {{[-v|--version]}}`
|
`git push`
|
||||||
|
|
||||||
|
- Pull any changes made to a remote:
|
||||||
|
|
||||||
|
`git pull`
|
||||||
|
|
||||||
|
- Reset everything the way it was in the latest commit:
|
||||||
|
|
||||||
|
`git reset --hard; git clean {{[-f|--force]}}`
|
||||||
|
|||||||
29
tldr/linux/ptyxis
Normal file
29
tldr/linux/ptyxis
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# ptyxis
|
||||||
|
|
||||||
|
> A container-oriented terminal for GNOME.
|
||||||
|
> More information: <https://gitlab.gnome.org/chergert/ptyxis#basic-usage--command-line-options>.
|
||||||
|
|
||||||
|
- Open a new Ptyxis window:
|
||||||
|
|
||||||
|
`ptyxis --new-window`
|
||||||
|
|
||||||
|
- Execute a specific command in a new terminal window:
|
||||||
|
|
||||||
|
`ptyxis {{[-x|--execute]}} {{command}}`
|
||||||
|
|
||||||
|
- Open new tab in the last opened window:
|
||||||
|
|
||||||
|
`ptyxis --tab`
|
||||||
|
|
||||||
|
- Set the title for a new:
|
||||||
|
|
||||||
|
`ptyxis --tab {{[-T|--title]}} {{title}}`
|
||||||
|
|
||||||
|
- Specify the working directory for a new tab, window, or command execution:
|
||||||
|
|
||||||
|
`ptyxis {{[-d|--working-directory]}} {{path/to/directory}} --tab`
|
||||||
14
tldr/tzconfig
Normal file
14
tldr/tzconfig
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# tzconfig
|
||||||
|
|
||||||
|
> Manage and set your local timezone.
|
||||||
|
> It accepts no parameters.
|
||||||
|
> More information: <https://manned.org/tzconfig>.
|
||||||
|
|
||||||
|
- Launch timezone configuration utility:
|
||||||
|
|
||||||
|
`tzconfig`
|
||||||
Reference in New Issue
Block a user