Skip to content

Instantly share code, notes, and snippets.

@lerouse
Forked from igorbabko/Laravel & Git aliases
Last active October 11, 2018 10:34
Show Gist options
  • Save lerouse/931a45f03ddea89fea80e81966c144ff to your computer and use it in GitHub Desktop.
Save lerouse/931a45f03ddea89fea80e81966c144ff to your computer and use it in GitHub Desktop.
Add Git Pull then Push
# Git aliases
alias gs="git status"
alias ga="git add"
alias gaa="git add ."
alias gc="git commit"
alias gp="git push"
alias gpl="git pull"
alias gptp="git pull && git push"
alias gcm="git commit -m"
alias gl="git log"
alias gr="git reset"
alias gcl="git clone"
alias nah="git reset --hard && git clean -df"
alias wip="git add . && git commit -m 'WIP'"
alias wipa="git add . && git commit --amend -m 'WIP'"
alias glp="git log --pretty=oneline"
alias grc="git rebase --interactive HEAD~2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment