-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
55 lines (50 loc) · 1.68 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
#
# ------------------------------------------------------------
# - title: .gitconfig
# - Author: Rakesh Niraula
# - date: 2020-04-03 09:35:59
# ------------------------------------------------------------
[user]
name = rakesh
email = rakeshhniraulaa@gmail.com
[color]
diff = auto
status = auto
branch = auto
[color "status"]
added = green
changed = blue
untracked = red
[color "diff"]
meta = yellow
old = red
new = green
[commit]
template = ~/.gitmessage
[core]
editor = vim
autocrlf = input
[push]
followTags = true
default = current
[alias]
plog = log --graph --pretty=format:'%C(bold blue)%h%Creset - %C(yellow)%d%Creset %s %C(cyan dim)(%cr)%Creset %n' --abbrev-commit --branches
# Adapted from https://blog.jez.io/cli-code-review/
# List files which have changed since BASE
# Set BASE in shell configuration or before the command
files = !git diff --name-only $(git merge-base HEAD \"$BASE\")
# With stat for interactive use
stat = !git diff --stat $(git merge-base HEAD \"$BASE\")
# Put heatmap on your path:
# https://github.com/jez/git-heatmap/blob/master/git-heatmap
heatmap = git-heatmap
# Open all files changed since BASE in Vim tabs
# Then, run fugitive's :Gdiff in each tab, and finally
# tell vim-gitgutter to show +/- for changes since BASE
review = !vim -p $(git files) +\"tabdo Gdiff $BASE\" +\"let g:gitgutter_diff_base = '$BASE'\"
# Same as the above, except specify names of files as arguments,
# instead of opening all files:
# git reviewone foo.js bar.js
reviewone = !vim -p +\"tabdo Gdiff $BASE\" +\"let g:gitgutter_diff_base = '$BASE'\"
[credential]
helper = cache