mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 11:47:42 +00:00
Update cheatsheets
This commit is contained in:
34
git
Normal file
34
git
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git
|
||||
|
||||
> Distributed version control system.
|
||||
> Some subcommands such as `commit`, `add`, `branch`, `checkout`, `push`, etc. have their own usage documentation.
|
||||
> More information: <https://git-scm.com/>.
|
||||
|
||||
- Execute a Git subcommand:
|
||||
|
||||
`git {{subcommand}}`
|
||||
|
||||
- Execute a Git subcommand on a custom repository root path:
|
||||
|
||||
`git -C {{path/to/repo}} {{subcommand}}`
|
||||
|
||||
- Execute a Git subcommand with a given configuration set:
|
||||
|
||||
`git -c '{{config.key}}={{value}}' {{subcommand}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`git --help`
|
||||
|
||||
- Display help for a specific subcommand (like `clone`, `add`, `push`, `log`, etc.):
|
||||
|
||||
`git help {{subcommand}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`git --version`
|
||||
Reference in New Issue
Block a user