-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
70 lines (61 loc) · 1.69 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[user]
name = Bilal Shaikh
email = bilalshaikh42@gmail.com
signingkey = 20AF410ACB490F7FDE1F1B422B81BCA28F8B07E7
[github]
user = bilalshaikh42
[core]
excludesfile = ~/.gitignore_global
editor = nano
[alias]
st = status
sts = status -sb
stl = ls-files -m -o --exclude-standard
ci = commit
br = branch
co = checkout
cr = clone --recursive
df = diff --word-diff
unstage = reset --hard HEAD
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ll = log --pretty=oneline --graph --abbrev-commit
lm = log --pretty=format:'* %s (%h)'
lg = log -p
g = grep --break --heading --line-number
amend = commit --amend --reuse-message=HEAD
contrib = shortlog --summary --numbered
show-ignored = "! git clean -ndX | perl -pe 's/Would remove/Ignored:/'"
ld = "!sh -c \"git log --since '${1:-1} days ago' --oneline --author $(git config user.email)\" -"
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
patch = !git --no-pager diff --no-color
all ="!f() { ls | xargs -P16 -I{} git -C {} $1; }; f"
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[credential]
helper = cache --timeout=7200
[pull]
rebase = true
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
[gpg]
program = gpg2
[commit]
gpgsign = true