Created
August 8, 2010 08:50
-
-
Save shripadk/513782 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
Here are some useful Git commands that I use on a regular basis. | |
git init | |
git status | |
git add . | |
git commit -a | |
touch tmp/.gitignore log/.gitignore vendor/.gitignore | |
git remote add origin (or codaset, github etc) | |
git@username:codaset.com/nameofproject.git | |
git push origin master | |
git remote show | |
You can even alias these and other commands in your .profile (Mac OsX) or .bashrc (Linux) to make them even faster and easier to use. | |
alias gst='git status' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gd='git diff | mate' | |
alias gc='git commit -v' | |
alias gca='git commit -v -a' | |
alias gb='git branch --color' | |
alias gba='git branch -a' | |
alias gco='git checkout' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment