-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
52 lines (52 loc) · 1.43 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
[user]
name = toshi-toma
email = toshitoma1217@gmail.com
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold # line info
old = red # deletions
new = green # additions
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
# Use custom `.gitignore` and `.gitattributes`
autocrlf = false
excludesFile = /Users/toshi-toma/.config/git/ignore
[ghq]
root = ~/dev
[pager]
log = diff-highlight | less
show = diff-highlight | less
diff = diff-highlight | less
[alias]
st = status
br = branch
co = commit -m
ch = checkout
pu = push
pl = pull
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
# View the current working tree status using the short format
s = status -s
# Show the diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
# Switch to a branch, creating it if necessary
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
# Show verbose output about tags, branches or remotestags = tag -l
branches = branch -a
remotes = remote -v
# List aliases
aliases = config --get-regexp alias
[url "https://"]
insteadOf = git://
[pager]
log = diff-highlight | less
show = diff-highlight | less
diff = diff-highlight | less