Support global gitignore

Keep project-specific gitignore files clean.
This commit is contained in:
William Carroll 2018-07-16 18:25:41 -04:00
parent 4ccfe6238e
commit f84a9c6438
2 changed files with 6 additions and 2 deletions

View file

@ -4,8 +4,8 @@
[alias] [alias]
recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format=\"%(refname:short)\" recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format=\"%(refname:short)\"
today = ! git log --date=relative --since=00:00:00 --all --no-merges --oneline --author=\"$(git config --get user.email)\" today = ! git log --date=relative --since=00:00:00 --all --no-merges --oneline --author=\"$(git config --get user.email)\"
changed-files = ! git diff --name-only $(current_branch) $(git merge-base $(current_branch) master) changed-files = ! git --no-pager diff --name-only $(current_branch) $(git merge-base $(current_branch) master)
conflicts = diff --name-only --diff-filter=U conflicts = ! git --no-pager diff --name-only --diff-filter=U
yday = ! git log --name-only --since=yesterday.midnight --until=today.midnight --author=\"$(git config --get user.email)\" yday = ! git log --name-only --since=yesterday.midnight --until=today.midnight --author=\"$(git config --get user.email)\"
patch-grep = log -p -S patch-grep = log -p -S
[credential] [credential]
@ -17,3 +17,5 @@
autostash = true autostash = true
[github] [github]
user = wpcarro user = wpcarro
[core]
excludesfile = ~/.gitignore

2
configs/shared/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
# Mac
.DS_Store