-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
50 lines (38 loc) · 877 Bytes
/
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
[alias]
up = !git push -u origin "$(git rev-parse --abbrev-ref HEAD)"
pushf = push --force-with-lease
delete-branch = push origin --delete
prune-branches = !git for-each-ref --shell --format='b="$(echo %(refname) | cut -sd / -f 3-)" && [ "$b" != master ] && git branch -d "$b"' refs/heads/ | sh
rbc = rebase --continue
rbi = rebase --interactive
# Listing things
branches = branch -a
graph = log --graph --oneline --decorate
ls = !git-ls
# Checkout
co = checkout
cob = checkout -b
upstream = !git push -u origin HEAD
[push]
default = simple
autoSetupRemote = true
autoSetupRemote = true
[credential]
helper = osxkeychain
[user]
name = Dan Lee
email = [email protected]
username = sourdzl
[init]
defaultBranch = main
[github]
user = sourdzl
# [commit]
# [gpg]
# program = gpg
# [commit]
# gpgsign = true
[core]
editor = vim
[diff]
tool = vimpager