-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
57 lines (51 loc) · 1.13 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
[user]
name = $GIT_NAME
email = $GIT_EMAIL
[core]
quotepath = false
excludesfile = /Users/ammonkc/.gitignore_global
editor = /usr/local/bin/vim
autocrlf = input
[github]
user = $GITHUB_USER
token = $GITHUB_TOKEN
[credential]
helper = osxkeychain
[color]
ui = auto
[help]
autocorrect = 1
[advice]
pushNonFastForward = false
statusHints = false
[branch]
autosetupmerge = true
[push]
default = tracking
[rerere]
enabled = true
[alias]
#Basic
st = status
co = checkout
#Flow
fs = flow feature start
ff = flow feature finish
rs = flow release start
rf = flow release finish
#Infoz
count = shortlog -sn
df = diff --word-diff
br = branch -a
sh = show --pretty=format: --name-only
#Log
last = log -1 HEAD
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
#commit
amend = commit --amend
cm = commit
cmm = commit -m
#Undo
undo = 'reset HEAD~ && clean -df'
# Undo a `git push`
undopush = 'push -f origin HEAD^:master'