This repository has been archived by the owner on Feb 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.gitconfig.sample
79 lines (70 loc) · 1.48 KB
/
.gitconfig.sample
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
71
72
73
74
75
76
77
78
# sample .gitconfig file of mine
# (copy as .gitconfig and customize it)
#
# last update: 2018.08.28.
[alias]
# commands
cl = clone
co = checkout
ci = commit
st = status
br = branch
unstage = reset HEAD --
type = cat-file -t
dump = cat-file -p
cp = cherry-pick
fetchall = fetch --all --tags --prune
# log
l = log
ls = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
ll = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short -p
# diff
diff = diff --word-diff
ds = diff --staged
dc = diff --cached
# stash
sl = stash list
sa = stash apply
ss = stash save
stashall = stash save --include-untracked
# submodule
su = submodule update
sui = submodule update --init --recursive
# grep with group
g = "grep --break --heading --line-number"
[status]
showUntrackedFiles = all
[grep]
extendRegexp = true
lineNumber = true
[color]
ui = auto
[core]
editor = vim
[push]
# default = simple
[merge]
tool = vimdiff
[branch]
# autosetuprebase = always # or `git pull --rebase`
[user]
name = Sungjin Han
email = [email protected]
[github]
user = meinside
# gitflow
[gitflow "branch"]
master = master
develop = develop
[gitflow "prefix"]
feature = feature/
release = release/
hotfix = hotfix/
bugfix = bugfix/
support = support/
versiontag = v
# force ssh for my own repositories
[url "ssh://[email protected]/meinside/"]
insteadOf = https://github.com/meinside/
[url "ssh://[email protected]/meinside/"]
insteadOf = https://bitbucket.org/meinside/