Created
September 25, 2013 19:19
-
-
Save roddds/6704643 to your computer and use it in GitHub Desktop.
useful git/django aliases
This file contains 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
alias dif="git diff" | |
alias add="git add --all" | |
alias commit="git commit -m" | |
alias runserver="python manage.py runserver_plus" | |
alias sp="python manage.py shell_plus" | |
alias manage="./manage.py" | |
alias undo="git reset --soft HEAD^1" | |
alias unstage="git reset HEAD" | |
function push { | |
echo "git push origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD)" | |
git push origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | |
} | |
function pull { | |
echo "git pull origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD)" | |
git pull origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment