Skip to content

Instantly share code, notes, and snippets.

@ooade
Created May 27, 2019 09:08
Show Gist options
  • Save ooade/60cd02af9c6e62f75fdf93f4160ae191 to your computer and use it in GitHub Desktop.
Save ooade/60cd02af9c6e62f75fdf93f4160ae191 to your computer and use it in GitHub Desktop.
Bash Aliases
# Add each alias on separate lines
# Git Aliases
alias gac="git add . && git commit -m" #Add all and commit
alias gcb="git checkout -b" #Check out to a specific branch
alias gp="git push origin HEAD" #Push commits to the current HEAD
alias gpom="git push origin master" #Push commits to master branch
alias gl="git pull" #Pull commits; Origin and Branch should be specified
alias glom="git pull origin master" #Pull the master branch
alias gri="git rebase -i" #Interactive rebase; Specify HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment