Created
October 28, 2008 23:46
-
-
Save schacon/20553 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The most commonly used git commands are: | |
Basic Commands | |
init Create an empty git repository or reinitialize an existing one | |
add Add file contents to the staging area | |
status Show the working tree and staging area status | |
commit Record changes in the staging area to the repository | |
rm Remove files from the working tree and from the index | |
mv Move or rename a file, a directory, or a symlink | |
History Commands | |
log Show commit log history | |
diff Show changes between commits, commit and working tree, etc | |
grep Print lines in git tracked files matching a pattern | |
reset Reset current HEAD to the specified state | |
show Show various types of objects | |
Branch Commands | |
checkout Checkout a branch or paths to the working tree | |
branch List, create, or delete branches | |
merge Join two or more development histories together | |
rebase Apply changes introduced in one branch onto another | |
tag Create, list, delete or verify a tag object signed with GPG | |
Remote Commands | |
clone Clone a repository into a new directory | |
fetch Download objects and refs from another repository | |
pull Fetch from and merge with another repository or a local branch | |
push Update remote refs along with associated objects | |
See 'git help COMMAND' for more information on a specific command. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment