-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
40 lines (40 loc) · 1.15 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
[user]
name = Brian Sayler
email = [email protected]
[includeIf "gitdir:~/workspace/personal/"]
path = ~/workspace/personal/.gitconfig
[includeIf "gitdir:~/workspace/work/"]
path = ~/workspace/work/.gitconfig
[commit]
gpgsign = true
[core]
editor = /usr/bin/vim
sshCommand = ssh -i ~/.ssh/id_github_rsa
[pull]
ff = only
[format]
pretty = format:'%Cred%h%Creset -%Cblue%an <%aE>%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
st = status
co = checkout
br = branch
dc = "diff --cached"
pr = "pull --rebase"
ci = commit
type = cat-file -t
dump = cat-file -p
fullhashlog = "log --graph --abbrev-commit '--format=format:%H %C(yellow)%ci%Creset %Cgreen%an%Creset | %s'"
w = whatchanged
unpushed = !"PROJ_BRANCH=$(git symbolic-ref HEAD | sed 's|refs/heads/||') && git log origin/$PROJ_BRANCH..HEAD"
p = pull
ls = log -20
amend = commit --amend --no-edit
[push]
default = simple
[color]
ui = auto
pager = true
[color "status"]
added = yellow
untracked = cyan