Add aliases for '--(no-)skip-worktree' & showing hidden files

This commit is contained in:
Henré Botha 2017-08-31 10:51:44 +02:00
parent d848c94804
commit b676b79185

View File

@ -156,6 +156,8 @@ alias ggsup='git branch --set-upstream-to=origin/$(git_current_branch)'
alias gpsup='git push --set-upstream origin $(git_current_branch)'
alias ghh='git help'
alias ghidden='git ls-files -v . | grep ^S'
alias ghide='git update-index --skip-worktree'
alias gignore='git update-index --assume-unchanged'
alias gignored='git ls-files -v | grep "^[[:lower:]]"'
@ -231,6 +233,7 @@ alias gsu='git submodule update'
alias gts='git tag -s'
alias gtv='git tag | sort -V'
alias gunhide='git update-index --no-skip-worktree'
alias gunignore='git update-index --no-assume-unchanged'
alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
alias gup='git pull --rebase'