Update git diff aliases
This commit is contained in:
parent
73811d30c8
commit
e98ed2fcb7
6
zshrc
6
zshrc
|
@ -187,8 +187,10 @@ alias pbin='~/repos/cpaste/cpaste --sourcecode --expire 1week --file '
|
||||||
## Git aliases − Try to prefix with 'gg' {{{
|
## Git aliases − Try to prefix with 'gg' {{{
|
||||||
### Get status of the repo
|
### Get status of the repo
|
||||||
alias ggstatus='git status'
|
alias ggstatus='git status'
|
||||||
### Show differences between changes and index
|
### Show differences between changes and index and ensure to display colors even with a pipe
|
||||||
alias ggdiff='git diff'
|
alias ggdiff='git diff --color=always'
|
||||||
|
### Show differences between changes and index WITHOUT any colors
|
||||||
|
alias ggnocolordiff='git diff --color=never'
|
||||||
### Show only words/characters differences
|
### Show only words/characters differences
|
||||||
alias ggwdiff='git diff --color-words=. --patience'
|
alias ggwdiff='git diff --color-words=. --patience'
|
||||||
### Add changes to index
|
### Add changes to index
|
||||||
|
|
Loading…
Reference in New Issue