Skip to content

Instantly share code, notes, and snippets.

@steph-vie
Forked from thomasbnt/.bash_aliases
Created September 25, 2022 17:37
Show Gist options
  • Save steph-vie/7df43d288442993d5aed7ff6ada2bc82 to your computer and use it in GitHub Desktop.
Save steph-vie/7df43d288442993d5aed7ff6ada2bc82 to your computer and use it in GitHub Desktop.
# Git
alias gitc="git commit -m $1"
alias gc="git commit -m $1"
alias gita="git add"
alias ga="git add"
alias gits="git status"
alias gitd="git diff"
alias gitb="git branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate"
alias gb="git branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate"
alias gitch="git checkout"
alias gitchb="git checkout -b"
alias gitcl="git clone"
alias gitpu="git pull"
alias gpull="git pull"
alias gitp="git push"
alias gp="git push"
alias gpush="git push"
# Shortcuts
alias lab="cd ~/lab"
alias l='ls -lah'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment