-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig.erb
39 lines (37 loc) · 1.07 KB
/
gitconfig.erb
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
[user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
[github]
user = <%= print("GitHub Username: "); STDOUT.flush; STDIN.gets.chomp %>
token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore
whitespace = space-before-tab,trailing-space
[color]
pager = true
ui = auto
diff = auto
status = auto
branch = auto
[diff]
tool = vimdiff
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
who = shortlog -s --
ff = merge --ff-only @{u}
conflicts = !git ls-files --unmerged | cut -c51- | sort -u | xargs $EDITOR
lc = log ORIG_HEAD.. --stat --no-merges
#log
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
flg = log -M --summary --stat --date=relative --abbrev-commit
plg = log -p
#diff
changes=diff --name-status -r
diffstat=diff --stat -r
last = cat-file commit HEAD
[pack]
threads = 0