-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
20 lines (19 loc) · 1.43 KB
/
gitconfig
File metadata and controls
20 lines (19 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[alias]
m = checkout origin/main
s = status
st = diff --staged
co = checkout
a = add --all
cm = commit
cp = cherry-pick
amen = commit --amend --no-edit
word = commit --amend
last = whatchanged -1
last-diff = diff HEAD^..HEAD
find = branch -a --contains
lg = log --graph --pretty=format:'%Cred%h%Creset - %<(50)%s %Cgreen%cr %C(bold blue)%an%Creset%C(yellow)%d%Creset' --abbrev-commit --date=relative
l = log --graph --pretty=format:'%Cred%h%Creset - %<(50)%s %Cgreen%cr %C(bold blue)%an%Creset%C(yellow)%d%Creset' --abbrev-commit --date=relative -10
ll = log --pretty=format:'%Cred%h%Creset - %<(40)%s %Cgreen%cr %C(bold blue)%an%Creset%C(yellow)%d%Creset' --decorate --numstat -3
work = branch --sort=-committerdate --format='%(HEAD) %(align:width=80)%(color:white)%(align:width=30)%(refname:short)%(end)%(color:reset) %(color:yellow)%(contents:subject)%(end)%(color:reset) %(color:green)%(committerdate:relative)%(color:reset) %(color:bold blue)%(authorname)%(color:reset)'
w = for-each-ref --sort=-committerdate refs/heads/ --count 10 --format='%(HEAD) %(align:width=80)%(color:white)%(align:width=30)%(refname:short)%(end)%(color:reset) %(color:yellow)%(contents:subject)%(end)%(color:reset) %(color:green)%(committerdate:relative)%(color:reset) %(color:bold blue)%(authorname)%(color:reset)'
refl = reflog --pretty='%Cred%h %Cgreen%gd%Creset %<(50)%gs %Cgreen%cr %C(yellow)%d%Creset'