Skip to content

Commit

Permalink
global git config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arron-green committed Jul 1, 2022
1 parent 5171897 commit 826c8d8
Showing 1 changed file with 30 additions and 25 deletions.
55 changes: 30 additions & 25 deletions gitconfig
Original file line number Diff line number Diff line change
@@ -1,50 +1,51 @@
[user]
name = Arron Green
name = Arron Green

[credential]
helper = osxkeychain
useHttpPath = true
helper = osxkeychain
useHttpPath = true

[core]
editor = vim
excludesfile = ~/.gitignore
editor = vim
excludesfile = ~/.gitignore

[color]
ui = true
ui = true

[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=format:\"%C(yellow)%h %C(white)%d%Creset %s %Cblue(%an) %Cred%cr\" --abbrev-commit --all
setuser-personal = !git config user.name 'Arron Green' && git config user.email '[email protected]' && git whoami
setuser-work = !git config user.name 'Arron Green' && git config user.email '[email protected]' && git whoami
whoami = !bash -c 'echo \"$(git config --get user.name) <$(git config --get user.email)>\"'
squash = "!f(){ git rebase -i $(git merge-base ${1:-master} $(git rev-parse --abbrev-ref HEAD)); };f"
rm-merged = !git branch --merged | egrep -v '(^\\*|master|dev)' | xargs -I{} git branch -d {}
root = !git rev-parse --show-toplevel
git = !exec git
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=format:\"%C(yellow)%h %C(white)%d%Creset %s %Cblue(%an) %Cred%cr\" --abbrev-commit --all
setuser-personal = !git config user.name 'Arron Green' && git config user.email '[email protected]' && git whoami
setuser-work = !git config user.name 'Arron Green' && git config user.email '[email protected]' && git whoami
whoami = !bash -c 'echo \"$(git config --get user.name) <$(git config --get user.email)>\"'
squash = "!f(){ git rebase -i $(git merge-base ${1:-master} $(git rev-parse --abbrev-ref HEAD)); };f"
rm-merged = !git branch --merged | egrep -v '(^\\*|master|dev)' | xargs -I{} git branch -d {}
root = !git rev-parse --show-toplevel
git = !exec git

[merge]
tool = diffmerge
tool = diffmerge

[mergetool "diffmerge"]
cmd = diffmerge --merge\n--result=$MERGED $LOCAL $BASE $REMOTE
trustExitCode = true
cmd = diffmerge --merge\n--result=$MERGED $LOCAL $BASE $REMOTE
trustExitCode = true

[mergetool]
keepBackup = false
keepBackup = false

[diff]
tool = diffmerge
tool = diffmerge
colorMoved = zebra

[difftool "diffmerge"]
cmd = diffmerge $LOCAL $REMOTE
cmd = diffmerge $LOCAL $REMOTE

[push]
default = simple
default = simple

[grep]
extendRegexp = true
lineNumber = true
extendRegexp = true
lineNumber = true

[filter "lfs"]
clean = git-lfs clean -- %f
Expand All @@ -53,4 +54,8 @@
required = true

[init]
defaultBranch = main
defaultBranch = main
[fetch]
prune = true
[pull]
rebase = true

0 comments on commit 826c8d8

Please sign in to comment.