Make 'gd' alias a function and add 'stash' alias

This commit is contained in:
Kris Lamoureux 2020-02-25 10:21:42 -05:00
parent cfb24184dd
commit 5b7c39153f
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -33,7 +33,6 @@ alias 'sw'='cd /home/$USER/software && clear'
# Git shortcuts # Git shortcuts
alias 'gad'='git add . && git diff --cached' alias 'gad'='git add . && git diff --cached'
alias 'gd'='git diff HEAD~'
alias 'gdiff'='git diff' alias 'gdiff'='git diff'
alias 'status'='git status' alias 'status'='git status'
alias 'pull'='git pull --rebase' alias 'pull'='git pull --rebase'
@ -49,6 +48,11 @@ alias 'checkout'='git checkout'
alias 'commit'='git commit -S' alias 'commit'='git commit -S'
alias 'amend'='git commit -S --amend' alias 'amend'='git commit -S --amend'
alias 'fetch'='git fetch' alias 'fetch'='git fetch'
alias 'stash'='git stash'
function gd() {
git diff HEAD~$1
}
# Docker shortcuts # Docker shortcuts
function inspect() { function inspect() {