-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
40 lines (40 loc) · 1.14 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 = Alex Hancock
email = [email protected]
[alias]
c = commit -am
co = checkout
up = pull
br = branch
p = push
st = status -s
rc = rebase --continue
prune-all = !git remote | xargs -n 1 git remote prune
lgo = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
lg = log --graph --decorate --date=local
corh = !sh -c 'git fetch origin && git co $1 && git reset --hard origin/$1' -
ir = !sh -c 'git rebase -i HEAD~$0'
slam = !sh -c 'git push origin $0 -f'
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
[core]
excludesfile = ~/.gitignore
editor = vim
ignorecase = true
[color]
status = auto
branch = auto
diff = auto
[merge]
log = true
[rerere]
enabled = 1
[github]
user = alexhancock
[include]
path = ~/Dropbox/work/.gitconfig_extras
[ghi]
token = !security find-internet-password -a alexhancock -s github.com -l 'ghi token' -w
[url "https://github.com/"]
insteadOf = git://github.com/
[init]
defaultBranch = main