Skip to content

Instantly share code, notes, and snippets.

@ArthurBrito
Created June 22, 2018 18:46
Show Gist options
  • Save ArthurBrito/9b52b6271b8485ae02eec1c0e1a966fe to your computer and use it in GitHub Desktop.
Save ArthurBrito/9b52b6271b8485ae02eec1c0e1a966fe to your computer and use it in GitHub Desktop.
Aliases for git using shell fish
# $ vi ~/shell.fish
# $ . ~/shell.fish
# Aliases
alias g='git'
alias gs='git status'
alias gl='git log'
alias gcm='git checkout master'
alias glo='git log --pretty=oneline --abbrev-commit'
alias gc='git commit'
alias gp='git push'
alias gpoh="git push origin HEAD"
alias gpohf="git push origin HEAD --force"
alias gfurm="git fetch upstream; and git rebase upstream/master"
alias gca='git commit --amend'
alias gcane='git commit --amend --no-edit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment