-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
42 lines (35 loc) · 946 Bytes
/
.gitconfig
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
39
40
41
42
[user]
name = Jared Smartt
[core]
pager = "less -r" # Wrap git diff output
# For windows only
autocrlf = input
[alias]
# Show status
s = status
# Commit
cm = commit -m
cam = commit -am
amend = commit -a --amend
# Show branches
b = branch
br = branch -a
bd = branch -d
bdd = branch -D
ch = checkout
# Show logs
l = log --oneline --decorate --graph
l2 = log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
# List ignored or untracked files
lu = ls-files --others --exclude-standard
li = ls-files --others --ignored --exclude-standard
# Show diff
dc = diff --color-words
ds = diff --color-words --staged
dstat = diff --color-words --stat
# Show aliases
aliases = !git config --get-regexp 'alias.*' | sed 's/alias.//' | sed '0,/RE/s/ /\t/'
a = !git aliases
lu = ls-files --others --exclude-standard
[color]
ui = true