-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
65 lines (51 loc) · 1.57 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
56
57
58
59
60
61
62
63
64
65
# git config file
# config also read from ~/.config/git/config
[github]
user = tschutter
token = $GITHUB_TOKEN
[user]
name = Tom Schutter
email = t.schutter@comcast.net
[alias]
# hist = one-line per commit log
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
# logv = log + names and status of changed files
logv = log --name-status
# stat = short status
stat = status -s
# tags = verbose tag list
# %C(auto) = turn on auto coloring
# %h = short hash
# %cd = committer date (format respects --date= option)
# %d = ref names, like the --decorate option
# %s = subject
tags = log --tags --no-walk --date=format:%Y-%m-%dT%H:%M:%S --pretty='%C(auto)%h %cd%d %s'
# unadd/unstage = remove files/directories from staging
unadd = reset
unstage = reset
# visual = graphical repository browser
visual = !gitk
[core]
editor = mg
[log]
# Instead of showing the full 40-byte hexadecimal commit object
# name, show only a partial prefix.
abbrevCommit = true
# Show timestamps in a ISO 8601-like format.
date = iso
[color]
diff = auto
status = auto
ui = true
[color "decorate"]
# Default is yellow when printing tags, which is unreadable on a
# white background.
tag = "dim yellow"
[branch]
# When creating branches, indicated that they should be rebased
# instead of merged when doing a "git pull".
autosetuprebase = always
[push]
# set default to push the current branch to a central branch of
# the same name
default = current