Skip to content

Commit

Permalink
gitconfig for servers
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Jul 15, 2019
1 parent 8f8f32f commit 331d621
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions server/.gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[user]
name = Jon Gjengset
email = jon@thesquareplanet.com
[ui "color"]
ui = always
[color]
ui = true
[core]
autocrlf = input
safecrlf = true
[merge]
tool = nvim -d
[alias]
c = commit
s = status
st = status
lg = log --oneline
last = log -1 HEAD
f = push --force-with-lease
# https://stackoverflow.com/a/11688523/472927
ss = "!f() { git stash show stash^{/$*} -p; }; f"
sa = "!f() { git stash apply stash^{/$*}; }; f"
sl = stash list
[push]
default = simple
[help]
autocorrect = 1
[url "git@github.com:"]
insteadOf = gh:
[github]
user = jonhoo
[diff]
algorithm = patience
compactionHeuristic = true
[protocol]
version = 2
2 changes: 1 addition & 1 deletion shell/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
autocrlf = input
safecrlf = true
[merge]
tool = vimdiff
tool = nvim -d
[alias]
c = commit
s = status
Expand Down

0 comments on commit 331d621

Please sign in to comment.