2015-10-22 08:31:52 +01:00
|
|
|
# git
|
2014-02-23 10:43:06 +00:00
|
|
|
|
2016-07-24 13:15:31 +01:00
|
|
|
> Distributed version control system.
|
2023-09-05 11:05:32 +01:00
|
|
|
> Some subcommands such as `commit`, `add`, `branch`, `checkout`, `push`, etc. have their own usage documentation.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://git-scm.com/>.
|
2014-02-23 10:43:06 +00:00
|
|
|
|
2020-09-29 11:58:44 +01:00
|
|
|
- Execute a Git subcommand:
|
2014-02-23 10:43:06 +00:00
|
|
|
|
2020-09-29 11:58:44 +01:00
|
|
|
`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}}`
|
2024-01-30 04:55:24 +00:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`git --help`
|
|
|
|
|
|
|
|
- Display help for a specific subcommand (like `clone`, `add`, `push`, `log`, etc.):
|
|
|
|
|
|
|
|
`git help {{subcommand}}`
|
|
|
|
|
|
|
|
- Display version:
|
|
|
|
|
|
|
|
`git --version`
|