2015-10-22 10:31:52 +03:00
|
|
|
# git
|
2014-02-23 14:43:06 +04:00
|
|
|
|
2016-07-24 15:15:31 +03:00
|
|
|
> Distributed version control system.
|
2019-06-03 03:06:36 +03:00
|
|
|
> More information: <https://git-scm.com/>.
|
2014-02-23 14:43:06 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Check the Git version:
|
2014-03-02 15:11:24 +04:00
|
|
|
|
2014-03-09 16:20:13 +04:00
|
|
|
`git --version`
|
2014-03-02 15:11:24 +04:00
|
|
|
|
2020-09-29 13:58:44 +03:00
|
|
|
- Show general help:
|
2014-03-02 15:11:24 +04:00
|
|
|
|
2014-03-09 16:20:13 +04:00
|
|
|
`git --help`
|
2014-03-02 15:11:24 +04:00
|
|
|
|
2020-09-29 13:58:44 +03:00
|
|
|
- Show help on a Git subcommand (like `commit`, `log`, etc.):
|
2014-03-02 15:11:24 +04:00
|
|
|
|
2020-09-29 13:58:44 +03:00
|
|
|
`git help {{subcommand}}`
|
2014-03-02 15:11:24 +04:00
|
|
|
|
2020-09-29 13:58:44 +03:00
|
|
|
- Execute a Git subcommand:
|
2014-02-23 14:43:06 +04:00
|
|
|
|
2020-09-29 13:58:44 +03: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}}`
|