[2025-02-05 12:37:08]-自动同步
This commit is contained in:
@@ -11,6 +11,15 @@ if [ ! -d .git ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 处理空目录,添加 .gitkeep 文件
|
||||
log "检查并处理空目录..."
|
||||
for dir in $(find . -type d); do
|
||||
if [ -z "$(ls -A "$dir")" ]; then
|
||||
touch "$dir/.gitkeep"
|
||||
log "在空目录 $dir 中添加 .gitkeep 文件。"
|
||||
fi
|
||||
done
|
||||
|
||||
# 1. 暂存所有更改
|
||||
log "开始暂存所有更改..."
|
||||
git add . 2>&1 | while IFS= read -r line; do
|
||||
|
||||
0
ssl/.gitkeep
Normal file
0
ssl/.gitkeep
Normal file
Reference in New Issue
Block a user