-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
40 lines (40 loc) · 1.2 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
[user]
name = Your Name
email = [email protected]
username = student
[hub]
protocol = https
[core]
# editor = vim
autocrlf = input
safecrlf = true
ignorecase = true
# [pager]
# log = diff-so-fancy | less --tabs=4 -RFX
# diff = diff-so-fancy | less --tabs=4 -RFX
# show = diff-so-fancy | less --tabs=4 -RFX
[push]
default = current
[color]
ui = auto
[color "diff-highlight"]
oldNormal = red
oldHighlight = "124 208"
newNormal = green
newHighlight = "29 148"
[rebase]
autostash = true
[alias]
fixup = "!sh -c '(git diff-files --quiet || (echo Unstaged changes, please commit or stash with --keep-index; exit 1)) && COMMIT=$(git rev-parse $1) && git commit --fixup=$COMMIT && git rebase -i --autosquash $COMMIT~1' -"
root = !pwd
exec = "!exec "
stash-rename = "!_() { rev=$(git rev-parse $1) && git stash drop $1 || exit 1 ; git stash store -m \"$2\" $rev; }; _"
jump = !/usr/local/opt/git/share/git-core/contrib/git-jump/git-jump
[interactive]
singleKey = true
diffFilter = diff-so-fancy
# https://github.com/blog/2188-git-2-9-has-been-released
[diff]
compactionHeuristic = true
submodule = log
indentHeuristic = true