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/>.
Install
- All systems
-
curl cmd.cat/git.sh
- Debian
-
apt-get install git
- Ubuntu
-
apt-get install git
- Alpine
-
apk add git
- Arch Linux
-
pacman -S git
- Kali Linux
-
apt-get install git
- CentOS
-
yum install git
- Fedora
-
dnf install git
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install git
- OS X
-
brew install git
- Raspbian
-
apt-get install git
- Dockerfile
- dockerfile.run/git
- Docker
-
docker run cmd.cat/git git
powered by Commando
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/>.
-
Check the Git version:
git --version
-
Show general help:
git --help
-
Display 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
© tl;dr; authors and contributors