-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
54 lines (43 loc) · 1.42 KB
/
gitconfig
File metadata and controls
54 lines (43 loc) · 1.42 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[core]
# Forces line endings to Unix. May need to be changed for certain situations on Windows.
autocrlf = false
[alias]
# Show status
s = status
# Add
a = add .
# Commit
cmm = commit -m
cam = commit -am
# Show branches
b = branch
br = branch -a
bd = branch -d
bmm = branch --merged master
# Checkout
ch = checkout
cm = checkout master
cb = checkout -b
# Push
poh = push origin HEAD
puoh = push -u origin HEAD
# Merge
mm = merge master
# Fetch
f = fetch
prune = remote prune origin
# 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/'
lu = ls-files --others --exclude-standard
[color]
ui = auto