aboutsummaryrefslogtreecommitdiff
path: root/files/.gitconfig
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2016-10-14 19:11:42 +0500
committerAnton Bobov <abobov@gmail.com>2016-10-14 19:11:42 +0500
commit3fde1d5434c731dc82a66594738cb1faf9e88e26 (patch)
tree261cfca4b3074582477adc9d234f11c47d6aed22 /files/.gitconfig
parente6338cec988006f678d48819c93e7a7505ba6293 (diff)
[git] Update aliases.
Diffstat (limited to 'files/.gitconfig')
-rw-r--r--files/.gitconfig14
1 files changed, 8 insertions, 6 deletions
diff --git a/files/.gitconfig b/files/.gitconfig
index 1c54287..a6bcf5c 100644
--- a/files/.gitconfig
+++ b/files/.gitconfig
@@ -14,17 +14,19 @@
pager = less -+$LESS -FRX
excludesfile = ~/.gitignore
[alias]
- diffstat = diff --stat -r
+ aa = add --all --intent-to-add
+ ar = !sh -c 'git archive --format=tar --prefix="$(basename "$PWD")-$1/" $1^{tree} | bzip2 >"$(basename "$PWD")-$1.tar.bz2"' -
+ c = commit --verbose
co = checkout
ci = commit
- lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
- st = status
+ diffstat = diff --stat -r
+ fix = commit --amend -C HEAD
+ history-all = "!gitk --all $( git fsck | awk '/dangling commit/ {print $3}'; git log -g --pretty='format:%H')"
k = !sh -c 'gitk $1' -
ka = !sh -c 'gitk --all' -
kb = !sh -c 'gitk --branches' -
- fix = commit --amend -C HEAD
- ar = !sh -c 'git archive --format=tar --prefix="$(basename "$PWD")-$1/" $1^{tree} | bzip2 >"$(basename "$PWD")-$1.tar.bz2"' -
- history-all = "!gitk --all $( git fsck | awk '/dangling commit/ {print $3}'; git log -g --pretty='format:%H')"
+ lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
+ st = status
[push]
default = matching
[advice]