aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.config/git/config7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/git/config b/.config/git/config
index d485275..56dfc7b 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -183,3 +183,10 @@
git init . && git config-user \"$1\" && git empty -m \"<empty>\"; \
fi; \
}; __fn"
+ ignore = "!__fn() { \
+ if [ \"$1\" = \"\" ]; then \
+ echo \"usage: git ignore <pattern>\" >&2; \
+ else \
+ echo \"$1\" >> \"$(git rev-parse --git-dir)/info/exclude\"; \
+ fi; \
+ }; __fn"