-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitconfig
57 lines (42 loc) · 1.17 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[credential]
helper = cache --timeout=3600
[color]
ui = true
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = cyan
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
# shows last modified local branches
last = branch --sort=-committerdate
# shows list of files that have a merge conflict
conflicts = diff --name-only --diff-filter=U
changes = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# unstages a file. use like 'git unstage filename'
unstage = reset HEAD --
# resets all uncomitted changes and files
abort = reset --hard HEAD
# shows diff only for files staged to commit
new = diff --cached
# shows only changes to files in current directory
here = status .
# undo last commit
undo = reset HEAD~1
# change last commit message
recommit = commit --amend
# ignore changes from a file
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignored = !git ls-files -v | grep "^[[:lower:]]"