Merge pull request #948 from tfendin/git-ignore-core-excludesFile

This commit is contained in:
罗泽轩 2021-12-31 14:43:55 +08:00 committed by GitHub
commit 82b33ac4c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ function show_contents {
}
function global_ignore() {
git config --global core.excludesile || \
git config --global core.excludesFile || \
([ -n "$XDG_CONFIG_HOME" ] && echo "$XDG_CONFIG_HOME/git/ignore") || \
echo "$HOME/.config/git/ignore"
}