Thursday, July 23, 2009

Git| common commands

Git - Fast Version Control System

Commands

Here is a list of the most common commands you're likely to use on a day-to-day basis.

Local Commands

git config Get and set repository or global options
git init Create an empty git repository or reinitialize an existing one
git add Add file contents to the index
git status Show the working tree status
git commit Record changes to the repository
git log Show commit history
git show Show information on any object
git tag Create, list, delete or verify tags

Remotey Commands

git clone Clone a repository into a new directory
git remote Manage set of tracked repositories
git pull Fetch from and merge with another repository or a local branch
git fetch Download objects and refs from another repository
git push Update remote refs along with associated objects

Branchy Commands

git checkout Checkout a branch or paths to the working tree
git branch List, create, or delete branches
git merge Join two or more development histories together
git rebase Forward-port local commits to the updated upstream head

Patchy Commands

git diff Show changes between commits, commit and working tree, etc
git apply Apply a patch on a git index file and a working tree
git format-patch Prepare patches for e-mail submission
git am Apply a series of patches from a mailbox

No comments: