-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
33 lines (33 loc) · 911 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
[alias]
df = diff
dfz = stash show -p
# http://www.jukie.net/bart/blog/pimping-out-git-log
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# Show what changed and by how much
ll = log --stat --abbrev-commit
# Show the user email for the current repository.
whoami = config user.email
# Removes a file from the index
unstage = reset HEAD --
[core]
editor = vim
autocrlf = input
excludesfile = ~/.gitignore
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold # line info
old = red # deletions
new = green # additions
[color "status"]
added = yellow
changed = green
untracked = cyan
[help]
autocorrect = 1
[init]
defaultBranch = main