-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
59 lines (49 loc) · 1.95 KB
/
gitconfig
File metadata and controls
59 lines (49 loc) · 1.95 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
55
56
57
58
59
[user]
name = Bhaskar S Upadhyayula
email = user@user
[core]
preloadindex = true
autocrlf = input
safecrlf = warn
eol = lf
editor = vim
browswer = google-chrome
whitespace = nowarn
[color]
ui = auto
[color "branch"]
current = red bold
local = green bold
remote = cyan bold
[alias]
br = branch -vv ; verbose
co = checkout
st = status ; -uno=don't show untracked files, -u=show them
; showing untracked files is a very slow process.
ds = describe
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = log --no-merges --date=format:'%Y-%m-%d' --format=format:'%C(bold blue)%h%C(reset) %C(green)%cd%C(reset) %C(cyan)%an%C(reset) %s'
# l = log --oneline --decorate
# lg = log --oneline --decorate --graph
# lf = log --oneline --decorate --follow --
pr = pull --rebase --autostash ; stash local modifications and apply after rebase
df = diff
dfc = diff --cached ; diff between index and HEAD
cm = commit
can = commit --amend --no-edit ; commit without editing commit message
sh = show HEAD
shf = show HEAD --name-only --pretty=\"\" ; don't show commit message. Just files.
rso = remote show origin
alias = config --get-regex alias
gsl='shortlog -s -n --all --no-merges'
mylog = log --author=Bhaskar --no-merges
[pull]
rebase = false
[diff]
algorithm = patience
tool = meld
[difftool]
prompt = false
[difftool "meld"]
cmd = meld "$LOCAL" "$REMOTE"