forked from dewyze/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
38 lines (34 loc) · 1.05 KB
/
gitconfig
File metadata and controls
38 lines (34 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[color]
ui = auto
[alias]
ci = commit
co = checkout
st = status
ch = cherry -v origin
br = branch
aa = add --all --verbose .
addall = add -A .
hist = log --graph --abbrev-commit --pretty=format:'%C(red)%h%C(reset) - %s %C(green)(%cr) %C(blue)<%an>%C(magenta)%d%C(reset)'
oneline = log --pretty=format:\"%h %ad%x20%s%x20%x28%an%x29\" --date=short
current = log --pretty=format:'%ad %h %d' --abbrev-commit --date=short -1
cur = log --pretty=format:'%ad %h %d' --abbrev-commit --date=short -1
ls = ls-files
pr = pull --rebase
# show difference between the HEAD and the index
staged = diff --cached
dc = diff --cached
ds = diff --staged
# show difference between working tree and the index
unstaged = diff
pile = stash --include-untracked
# git-duet aliases (must have https://github.com/git-duet/git-duet installed)
dci = duet-commit
[push]
default = current
[core]
autocrlf = input
excludesfile = ~/.gitignore_global
[pager]
log = diff-highlight | less
show = diff-highlight | less
diff = diff-highlight | less