tldr/pages/common/git.md

29 lines
525 B
Markdown
Raw Normal View History

2015-10-22 08:31:52 +01:00
# git
2014-02-23 10:43:06 +00:00
> Distributed version control system.
> More information: <https://git-scm.com/>.
2014-02-23 10:43:06 +00:00
- Check the Git version:
2014-03-09 12:20:13 +00:00
`git --version`
- Show general help:
2014-03-09 12:20:13 +00:00
`git --help`
- Show help on a Git subcommand (like `commit`, `log`, etc.):
`git help {{subcommand}}`
- Execute a Git subcommand:
2014-02-23 10:43:06 +00: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}}`