update .gitignore_global

This commit is contained in:
luk
2026-06-23 11:09:09 +08:00
parent 5d64462789
commit 209c0785da
3 changed files with 10 additions and 64 deletions

38
.gitignore vendored
View File

@@ -5,7 +5,7 @@
# https://github.com/SlideWave/gitignore-include?tab=readme-ov-file#examples # https://github.com/SlideWave/gitignore-include?tab=readme-ov-file#examples
# https://gitignore.io # https://gitignore.io
### .gitignore.global.txt ### ### .gitignore_global ###
# Self defined pattern to ignore # Self defined pattern to ignore
?*.gitignore ?*.gitignore
@@ -30,13 +30,16 @@
.deploy_git/ .deploy_git/
.idea/ .idea/
.sass-cache/ .sass-cache/
.wrangler .wrangler/
/test/unit/coverage/ /test/unit/coverage/
/test/e2e/reports/ /test/e2e/reports/
node_modules/ node_modules/
*.aab *.aab
*.apk *.apk
*.ipa *.ipa
*.rar
*.tgz
*.zip
*.min.js *.min.js
*.min.css *.min.css
*.min.html *.min.html
@@ -58,22 +61,8 @@ Thumbs.db
thumbs.db thumbs.db
_desktop.ini _desktop.ini
# vue-cli 项目
/dist/
# 来自 vue-cli 创建项目的 .gitignore
.project
# hexo
/public/
# Hardhat
/artifacts/
/cache/
# seafile 临时文件 # seafile 临时文件
._* ._*
.$* .$*
# office 暂存文件 # office 暂存文件
@@ -92,22 +81,5 @@ _desktop.ini
.env.local .env.local
.env.*.local .env.*.local
# hexo
/db.json
# wo
# 服务端
/_archive/*
/_datastore/*
/_filestore/*
/_logstore/*
/_webroot/*
/_ssl/*
# uniapp 客户端
/unpackage/*
!/unpackage/res/
package-lock.json
pages4loader.json5
### .gitignore.local.txt ### ### .gitignore.local.txt ###

View File

@@ -26,7 +26,9 @@ else
fi fi
echo "" echo ""
echo "::*** Enter [path to .gitignore_global] or [leave blank] for default [[https://git.tic.cc/opx/sysconfig/raw/branch/main/nixhome/.gitignore_global]]" GLOBALPATH_DEFAULT=https://git.tic.cc/opx/sysconfig/raw/branch/main/nixhome/.gitignore_global
echo "::*** Enter [path to .gitignore_global] or [leave blank] for default [[$GLOBALPATH_DEFAULT]]"
read -p "***:: " GLOBALPATH read -p "***:: " GLOBALPATH
if [ "$GLOBALPATH" ] if [ "$GLOBALPATH" ]
then then
@@ -42,7 +44,7 @@ then
echo "√√√ GLOBALPATH = [[$GLOBALPATH]]" echo "√√√ GLOBALPATH = [[$GLOBALPATH]]"
fi fi
else else
GLOBALPATH=https://git.tic.cc/opx/sysconfig/raw/branch/main/nixhome/.gitignore_global GLOBALPATH=GLOBALPATH_DEFAULT
fi fi
echo "" echo ""
@@ -57,7 +59,7 @@ cd $ROOTPATH
echo "*** Starting from [[`pwd`]] ***" echo "*** Starting from [[`pwd`]] ***"
echo "" echo ""
find . -mindepth 1 -maxdepth 3 -type d -name '[^.]*' | grep -E -v 'node_modules|uni_modules|\.deploy_git|\.git|.svn|\.vscode|\.wrangler|unpackage|_webroot|_logstore|_datasotre|_archive|_filestore|_ssl' | while read repo find . -mindepth 0 -maxdepth 3 -type d -name '[^.]*' | grep -E -v 'node_modules|uni_modules|\.deploy_git|\.git|.svn|\.vscode|\.wrangler|unpackage|_webroot|_logstore|_datasotre|_archive|_filestore|_ssl' | while read repo
do do
if [ -f "$repo/.gitignore" ] # some git repo need to keep privacy, therefore judge from .gitignore, not from .git if [ -f "$repo/.gitignore" ] # some git repo need to keep privacy, therefore judge from .gitignore, not from .git
then then

View File

@@ -61,20 +61,6 @@ Thumbs.db
thumbs.db thumbs.db
_desktop.ini _desktop.ini
# vue-cli 项目
/dist/
# 来自 vue-cli 创建项目的 .gitignore
.project
# hexo
/public/
/db.json
# Hardhat
/artifacts/
/cache/
# seafile 临时文件 # seafile 临时文件
._* ._*
.$* .$*
@@ -95,19 +81,5 @@ _desktop.ini
.env.local .env.local
.env.*.local .env.*.local
# wo
# 服务端
/_archive/*
/_datastore/*
/_filestore/*
/_logstore/*
/_webroot/*
/_ssl/*
# uniapp 客户端
/unpackage/*
!/unpackage/res/
package-lock.json
pages4loader.json5
### .gitignore.local.txt ### ### .gitignore.local.txt ###