-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgitconfig
70 lines (56 loc) · 1.61 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
# -*- mode: conf; -*-
#+DEST=$HOME/
#+FNAME=.gitconfig
[user]
name = Yakkala Yagnesh Raghava
email = [email protected]
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol,space-before-tab
excludesfile = ~/.gitignore_global
# disable quoting non ascii chars
quotepath = false
[diff]
renames = copies
algorithm = patience
[user]
logallrefupdates=true
[merge]
stat = true
[grep]
fullname = true
[push]
default = current
[color]
ui = true
[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"]
whitespace = red reverse
[alias]
st = status
ci = commit
cam = commit -am
br = branch
brd = branch -d
co = checkout
cob = checkout -b
df = diff
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
staged = diff --cached
tagbydate = log --tags --simplify-by-decoration --pretty=\"format:%ai %d\"
track = "!f() { ([ $# -eq 2 ] && ( echo \"Setting tracking for branch \" $1 \" -> \" $2;git branch --set-upstream $1 $2; ) || ( git for-each-ref --format=\"local: %(refname:short) <--sync--> remote: %(upstream:short)\" refs/heads && echo --Remotes && git remote -v)); }; f"
[github]
user = yyr