-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig
50 lines (35 loc) · 957 Bytes
/
dot_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
[user]
name = Ross Williams
email = [email protected]
signingkey = ~/.ssh/git_sign_sk
[gpg]
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[commit]
gpgsign = true
[core]
editor = vim
filemode = false
[color]
ui = auto
[push]
default = matching
[status]
submoduleSummary = true
[diff]
submodule = log
[init]
defaultBranch = master
[alias]
fix-head-origin = remote set-head origin --auto
[alias]
main = !basename $(git symbolic-ref refs/remotes/origin/HEAD)
[alias]
tree = log --graph --decorate --pretty=oneline --abbrev-commit
[alias]
sync = "!f(){ git fetch ${1:-origin} && git rebase ${1:-origin}/$(git main); };f"
[alias]
newbranch = "!f(){ if [ -z $@ ]; then echo 'Usage: git newbranch <branch_name>'; else git checkout $(git main) && git sync && git checkout -b $@; fi; };f"
[includeIf "gitdir:~/projects/work/"]
path = ~/.gitconfigwork