About
The git executable
Usage
usage: git [--version] [--help] [-C <path>] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
where:
- –git-dir is the location of the repository files
- –work-tree is the location of the work tree
Commands
Command | Description |
---|---|
add | Add file contents to the index |
add–interactive | |
am | |
annotate | |
apply | |
archimport | |
archive | |
bisect | Find by binary search the change that introduced a bug |
bisect–helper | |
blame | |
branch | List, create, or delete branches |
bundle | |
cat-file | |
check-attr | |
check-ignore | |
check-mailmap | |
check-ref-format | |
checkout | Checkout a branch or paths to the working tree |
checkout-index | |
cherry | |
cherry-pick | |
citool | |
clean | |
clone | Clone a repository into a new directory |
column | |
commit | Record changes to the repository |
commit-tree | |
config | |
count-objects | |
credential | |
credential-store | |
credential-wincred | |
cvsexportcommit | |
cvsimport | |
cvsserver | |
daemon | |
describe | |
diff | Show changes between commits, commit and working tree, etc |
diff-files | |
diff-index | |
diff-tree | |
difftool | |
difftool–helper | |
fast-export | |
fast-import | |
fetch | Download objects and refs from another repository |
fetch-pack | |
filter-branch | |
fmt-merge-msg | |
for-each-ref | |
format-patch | |
fsck | |
fsck-objects | |
gc | |
get-tar-commit-id | |
grep | Print lines matching a pattern |
gui | |
gui–askpass | |
gui–askyesno | |
gui.tcl | |
hash-object | |
help | |
http-backend | |
http-fetch | |
http-push | |
imap-send | |
index-pack | |
init | Create an empty Git repository or reinitialize an existing one |
init-db | |
instaweb | |
interpret-trailers | |
log | Show commit logs |
ls-files | |
ls-remote | |
ls-tree | |
mailinfo | |
mailsplit | |
merge | Join two or more development histories together |
merge-base | |
merge-file | |
merge-index | |
merge-octopus | |
merge-one-file | |
merge-ours | |
merge-recursive | |
merge-resolve | |
merge-subtree | |
merge-tree | |
mergetool | |
mktag | |
mktree | |
mv | Move or rename a file, a directory, or a symlink |
name-rev | |
notes | |
p4 | |
pack-objects | |
pack-redundant | |
pack-refs | |
patch-id | |
prune | |
prune-packed | |
pull | Fetch from and integrate with another repository or a local branch |
push | Update remote refs along with associated objects |
quiltimport | |
read-tree | |
rebase | Forward-port local commits to the updated upstream head |
receive-pack | |
reflog | |
relink | |
remote | Manage set of tracked repositories |
remote-ext | |
remote-fd | |
remote-ftp | |
remote-ftps | |
remote-http | |
remote-https | |
repack | |
replace | |
request-pull | |
rerere | |
reset | Reset current HEAD to the specified state |
rev-list | |
rev-parse | |
revert | |
rm | Remove files from the working tree and from the index |
send-email | |
send-pack | |
sh-i18n–envsubst | |
shortlog | |
show | Show various types of objects |
show-branch | |
show-index | |
show-ref | |
stage | |
stash | Stash the changes in a dirty working directory away |
status | Show the (working tree|file) status |
stripspace | |
submodule | |
subtree | |
svn | |
symbolic-ref | |
tag | Create, list, delete or verify a tag object signed with GPG |
unpack-file | |
unpack-objects | |
update-index | |
update-ref | |
update-server-info | |
upload-archive | |
upload-pack | |
var | |
verify-commit | |
verify-pack | |
verify-tag | |
web–browse | |
whatchanged | |
worktree | |
write-tree |
Wrapper
Help
- git help -a and git help -g lists available subcommands and some concept guides.
- git help <command> or git help <concept> to get help about a specific subcommand or concept.