mirror of
https://github.com/wahyd4/dotfiles.git
synced 2026-08-09 04:46:12 +10:00
.gitconfig: Tweak diff aliases
This commit is contained in:
committed by
Mathias Bynens
parent
0e6b837e77
commit
bfa4d80970
+2
-1
@@ -4,7 +4,8 @@
|
||||
# View the current working tree status using the short format
|
||||
s = status -s
|
||||
# Diff
|
||||
d = diff --patch-with-stat
|
||||
d = !"git diff-index --quiet HEAD -- || clear; git diff --patch-with-stat"
|
||||
di = !"d() { git diff --patch-with-stat HEAD~$1; }; git diff-index --quiet HEAD -- || clear; d"
|
||||
# Pull in remote changes for the current repository and all its submodules
|
||||
p = !"git pull; git submodule foreach git pull origin master"
|
||||
# Clone a repository including all submodules
|
||||
|
||||
Reference in New Issue
Block a user