Last active
July 21, 2023 23:46
-
-
Save thomasbnt/93e025d5a6437b3f9a0b1b0b9779e19b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 gs="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 gcl="git clone" | |
alias gitcl="git clone" | |
alias gpu="git pull" | |
alias gitpu="git pull" | |
alias gpull="git pull" | |
alias gitp="git push" | |
alias gp="git push" | |
alias gpush="git push" | |
# NPM alias | |
alias np='npm' | |
# NPM install alias | |
alias npi='npm install' | |
alias npis='npm install --save' | |
alias npig='npm install -g' | |
# NPM update | |
alias npu='npm update' | |
alias npug='npm update -g' | |
# NPM search | |
alias nps='npm search' | |
# Yarn | |
alias ya='yarn' | |
# Yarn run | |
alias yar='yarn run' | |
alias yars='yarn run start' | |
alias yart='yarn run test' | |
alias yarb='yarn run build' | |
# Yarn add/remove | |
alias yaa='yarn add' | |
alias yarm='yarn remove' | |
# Yarn upgrade | |
alias yau='yarn upgrade' | |
# Shortcuts | |
alias lab="cd ~/lab" | |
alias l='ls -lah' | |
alias ..='cd ..' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment