-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig.erb
More file actions
55 lines (48 loc) · 1.46 KB
/
gitconfig.erb
File metadata and controls
55 lines (48 loc) · 1.46 KB
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
[user]
name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %>
email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>
signingkey = <%= print("Your GPG KeyID: "); STDOUT.flush; STDIN.gets.chomp %>
[github]
user = <%= print("Your Github Username: "); STDOUT.flush; STDIN.gets.chomp %>
token = <%= print("Your Github Password: "); STDOUT.flush; STDIN.gets.chomp %>
[alias]
br = branch
ca = commit -a
cc = "! git commit -m '#-checkpoint-' --edit"
ci = commit
co = checkout
com = checkout master
d = diff --color-words
df = diff
discard = checkout
f = "! git status --porcelain| awk '{ print $2 }' | head -n 1" # get the 1st changed file
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold yellow)<%an>%Creset' --abbrev-commit --date=relative
l = "! git --no-pager log --oneline --graph -n 18 --decorate"
last = log -1 --stat -p --decorate -M
# lo = "! git --no-pager log --graph -n 20 --pretty=format:'%Cgreen%h%Creset %s %Cblue%an%Creset';echo"
# lg = log -p --decorate
lg = log --name-status
ll = "log --oneline --graph --decorate --branches"
praise = blame
st = status
sync = "! git pull && git push"
tags = tag -n1 -l
[apply]
whitespace = strip
[diff]
rename = copy
[pager]
color = true
[merge]
summary = true
[core]
pager = less -FRSX
excludesfile = ~/.gitignore
autocrlf = input
safecrlf = true
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = auto