Git/cmd
< Git
Jump to navigation
Jump to search
Git commands
|
Usage: git <command> [ <parameters> ]
command | process | description |
---|---|---|
add | repo creation 2 | updates the "staged" area using content found in the working tree (can be specified) |
branch | manages repository branches | |
checkout | ||
cherry-pick | ||
clone | repo creation 1b | copies a repository from somewhere else |
commit | repo creation 6 | commits changes currently staged |
commit-tree | ||
config | usage config | |
diff | repo creation 5 | shows difference between current directory contents and what you have staged |
fetch | fetches named heads or tags from one or more other repositories, along with the objects necessary to complete them. | |
init | repo creation 1a | initializes a new repository; does not add anything |
log | returns information about commits | |
merge | joins two or more branches together | |
pull | copying from | incorporates changes from a remote repository into the current branch. In its default mode, git pull is shorthand for git fetch followed by git merge FETCH_HEAD. |
push | copying to | updates remote refs using local refs, while sending objects necessary to complete the given refs |
rebase | forward-port local commits to the updated upstream head | |
read-tree | ||
remote | copying | manage aliases for remote repositories |
reset | resets current HEAD to the specified state | |
rm | repo creation 3 | removes files from staging and by default also from the filesystem |
show | ||
stash | saves local modifications, reverts the working directory to match HEAD commit | |
status | repo creation 4 | shows status of current repository |
submodule | manages modules | |
tag | creates an alias for a particular revision | |
worktree | ||
write-tree |