From f1d3ef2616e0feb9053e58894fc9dc9da79ae65b Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 4 Jul 2018 13:49:36 -0400 Subject: [PATCH] Update gitconfig --- skel/.conf.d/gitconfig.custom | 4 ++++ skel/.gitconfig | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 skel/.conf.d/gitconfig.custom diff --git a/skel/.conf.d/gitconfig.custom b/skel/.conf.d/gitconfig.custom new file mode 100644 index 0000000..5b7d3d7 --- /dev/null +++ b/skel/.conf.d/gitconfig.custom @@ -0,0 +1,4 @@ +# This file can be replaced by using the private tag +[user] + email = + name = diff --git a/skel/.gitconfig b/skel/.gitconfig index 09babe2..4fc501a 100644 --- a/skel/.gitconfig +++ b/skel/.gitconfig @@ -1,3 +1,5 @@ +[include] + path = .conf.d/gitconfig.custom [alias] i = "!git br&&git st" # coa = "!for i in $(git branch -a|cut -b3-|grep remotes|sed -e 's/remotes\///'|cut -d/ -f1 --complement|cut -d\ -f1);do git checkout $i;done" @@ -23,7 +25,7 @@ ignore = update-index --assume-unchanged noignore = update-index --no-assume-unchanged rename-branch = branch -m - find-file = "!for branch in $(git for-each-ref --format=\"%(refname)\" refs/heads); do if git ls-tree -r --name-only $branch | grep \"$1\" > /dev/null; then echo \"${branch}:\"; git ls-tree -r --name-only $branch | nl -bn -w3 | grep \"$1\"; fi; done; :" + find-file = "!for branch in $(git for-each-ref --format=\"%(refname)\" refs/heads); do if git ls-tree -r --name-only $branch | grep \"$1\" > /dev/null; then echo \"${branch}:\"; git ls-tree -r --name-only $branch | nl -bn -w3 | grep \"$1\"; fi; done; :" [push] default = matching [core] @@ -49,3 +51,5 @@ clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process +[pager] + branch = false