Skip to content

Instantly share code, notes, and snippets.

@roddds
Created September 25, 2013 19:19
Show Gist options
  • Save roddds/6704643 to your computer and use it in GitHub Desktop.
Save roddds/6704643 to your computer and use it in GitHub Desktop.
useful git/django aliases
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