Skip to content

Instantly share code, notes, and snippets.

@breckenedge
Last active July 16, 2021 18:05
Show Gist options
  • Save breckenedge/674d2bc7b4af5c84da8a5d7112942ae1 to your computer and use it in GitHub Desktop.
Save breckenedge/674d2bc7b4af5c84da8a5d7112942ae1 to your computer and use it in GitHub Desktop.
Git shell aliases
# Fragment of shell aliases I use with git
alias g="git"
alias gb="git for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'"
alias gca="git commit --amend"
alias gd="git branch -d"
alias gD="git branch -D"
alias gf="git fetch"
alias gfa="git fetch --all"
alias gu="git pull"
alias gp="git push"
alias gpf="git push --force-with-lease"
alias gs="git status"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment