add git-ignore-merge.*

This commit is contained in:
Luk
2026-01-20 12:37:16 +08:00
parent 5b36a3ae43
commit 1d11984211
4 changed files with 53 additions and 130 deletions

9
git-ignore-merge.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
echo ::*** Merge remote [.gitignore_global] and local [.gitignore.local.txt] to [.gitignore]
curl -sSL https://git.tic.cc/npm/sysconfig/raw/branch/main/nixhome/.gitignore_global > .gitignore
if [ -f .gitignore.local.txt ]; then cat .gitignore.local.txt >> .gitignore; fi;
echo
# usage in package.json:
# "to_merge_gitignore.sh": "curl -sSL https://git.tic.cc/npm/sysconfig/raw/branch/main/git-ignore-merge.sh | bash",