git
Distributed version control system. Some subcommands such ascommit,add,branch,checkout,push, etc. have their own usage documentation. More information: https://git-scm.com/.
-
Check the Git version:
git --version -
Show general help:
git --help -
Show help on a Git subcommand (like
clone,add,push,log, etc.):
git help {{subcommand}} -
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}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.