Make 'gd' alias a function and add 'stash' alias
This commit is contained in:
parent
cfb24184dd
commit
5b7c39153f
@ -33,7 +33,6 @@ alias 'sw'='cd /home/$USER/software && clear'
|
||||
|
||||
# Git shortcuts
|
||||
alias 'gad'='git add . && git diff --cached'
|
||||
alias 'gd'='git diff HEAD~'
|
||||
alias 'gdiff'='git diff'
|
||||
alias 'status'='git status'
|
||||
alias 'pull'='git pull --rebase'
|
||||
@ -49,6 +48,11 @@ alias 'checkout'='git checkout'
|
||||
alias 'commit'='git commit -S'
|
||||
alias 'amend'='git commit -S --amend'
|
||||
alias 'fetch'='git fetch'
|
||||
alias 'stash'='git stash'
|
||||
|
||||
function gd() {
|
||||
git diff HEAD~$1
|
||||
}
|
||||
|
||||
# Docker shortcuts
|
||||
function inspect() {
|
||||
|
Loading…
Reference in New Issue
Block a user