Added Jess Archer's aliases to gitconfig.
This commit is contained in:
parent
dabc2053b5
commit
47248a43c8
@ -9,11 +9,44 @@
|
||||
logshort = log --pretty=format:'%Cred%h %Cgreen[%cd]%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --date=short
|
||||
showfull = show --format=fuller --name-only
|
||||
|
||||
# Some aliases inspired by https://github.com/jessarcher
|
||||
a = add
|
||||
aa = add --all
|
||||
ap = add --patch
|
||||
au = add --update
|
||||
|
||||
b = branch
|
||||
ba = branch --all
|
||||
bd = branch --delete
|
||||
bD = branch --delete --force
|
||||
bm = branch --move
|
||||
bM = branch --move --force
|
||||
|
||||
c = commit
|
||||
# ca = commit --amend
|
||||
# I use --all more often than amend
|
||||
ca = commit --all
|
||||
ci = commit --interactive
|
||||
cm = commit --message
|
||||
cv = commit --verbose
|
||||
# from https://dzone.com/articles/lesser-known-git-commands
|
||||
commend = commit --amend --no-edit
|
||||
|
||||
d = diff
|
||||
dc = diff --cached
|
||||
ds = diff --staged
|
||||
dw = diff --word-diff
|
||||
|
||||
stl = stash list --date=local
|
||||
st = stash
|
||||
stp = stash pop
|
||||
|
||||
# more aliases from https://stackoverflow.com/questions/2553786/how-do-i-alias-commands-in-git
|
||||
bv = branch -a -vv
|
||||
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]%Creset%Cgreen\\ (%cd)" --decorate --numstat --date=relative
|
||||
ld = log --pretty=format:"%C(yellow)%h\\ %C(green)%ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short --graph
|
||||
ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
|
||||
lstat = log --name-status
|
||||
|
||||
# Short summary of commiters
|
||||
summary = shortlog --summary --numbered --email
|
||||
@ -36,6 +69,7 @@
|
||||
|
||||
# show stats
|
||||
stat = show --stat --format=fuller
|
||||
sname = show --name-status
|
||||
|
||||
# from https://dzone.com/articles/lesser-known-git-commands
|
||||
commend = commit --amend --no-edit
|
||||
@ -95,3 +129,8 @@
|
||||
|
||||
[http]
|
||||
# proxy = http://host:port
|
||||
#
|
||||
|
||||
[init]
|
||||
# Talisman Test
|
||||
# templatedir = 'c:/cygwin64/home/sgaiselm/.git-template'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user