|
|
|
@@ -13,6 +13,9 @@ General git configuration split out into sections mostly. |
|
|
|
|
|
|
|
* ~/.gitconfig |
|
|
|
** pager |
|
|
|
|
|
|
|
All pager, all the time. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[pager] |
|
|
|
color = true |
|
|
|
@@ -38,6 +41,9 @@ General git configuration split out into sections mostly. |
|
|
|
new = green reverse |
|
|
|
#+END_SRC |
|
|
|
** alias |
|
|
|
|
|
|
|
Aliases so I can be lay zee. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[alias] |
|
|
|
begin = !git init && git commit --allow-empty -m 'Initial empty commit' |
|
|
|
@@ -103,42 +109,67 @@ General git configuration split out into sections mostly. |
|
|
|
nopush = remote set-url --push origin no_push |
|
|
|
#+END_SRC |
|
|
|
** github |
|
|
|
|
|
|
|
My username for github. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[github] |
|
|
|
user = mitchty |
|
|
|
#+END_SRC |
|
|
|
** credential |
|
|
|
|
|
|
|
Use a gpg encrypted .netrc file. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[credential] |
|
|
|
helper = netrc -v -f ~/.netrc.gpg -f ~/.netrc |
|
|
|
#+END_SRC |
|
|
|
** advice |
|
|
|
|
|
|
|
Shut up already, I don't need hints. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[advice] |
|
|
|
statushints = false |
|
|
|
#+END_SRC |
|
|
|
** gui |
|
|
|
|
|
|
|
If I ever use the stupid gui, make it a little less derp. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[gui] |
|
|
|
fontui = -family Monaco -size 8 -weight normal -slant roman -underline 0 -overstrike 0 |
|
|
|
fontdiff = -family Monaco -size 8 -weight normal -slant roman -underline 0 -overstrike 0 |
|
|
|
#+END_SRC |
|
|
|
** http |
|
|
|
|
|
|
|
Make large git repos work better by increasing the post buffer. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[http] |
|
|
|
postBuffer = 209715200 |
|
|
|
#+END_SRC |
|
|
|
** push |
|
|
|
|
|
|
|
Forgot why this was here, some version git changed the default push behavior. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[push] |
|
|
|
default = simple |
|
|
|
#+END_SRC |
|
|
|
** url rewrites |
|
|
|
|
|
|
|
Don't use git:// (ssh) to connect to github. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[url "https://github.com/"] |
|
|
|
insteadOf = git://github.com/ |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
** username/email |
|
|
|
|
|
|
|
Default username and email to use if not overridden. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[user] |
|
|
|
name = Mitch Tishmack |
|
|
|
@@ -167,8 +198,17 @@ Common crap/build artifacts that git should always ignore. |
|
|
|
|
|
|
|
* Cray overrides |
|
|
|
** ~/.gitconfig |
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (and (bound-and-true-p git-p) (bound-and-true-p cray-p))) |
|
|
|
[user] |
|
|
|
name = Mitch Tishmack |
|
|
|
email = mtishmack@cray.com |
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig-cray" (and (bound-and-true-p git-p) (bound-and-true-p cray-p))) |
|
|
|
[user] |
|
|
|
name = Mitch Tishmack |
|
|
|
email = mtishmack@cray.com |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
** includes |
|
|
|
|
|
|
|
By paths, adjust what username/email gets used. Git 2.13+ only. |
|
|
|
|
|
|
|
#+BEGIN_SRC conf :tangle (tangle/file ".gitconfig" (bound-and-true-p git-p)) |
|
|
|
[includeIf "gitdir:~/src/stash.us.cray.com"] |
|
|
|
path = ~/.gitconfig-cray |
|
|
|
#+END_SRC |