From 5609506ab13aa80ccf26902de352db59fc2064cf Mon Sep 17 00:00:00 2001 From: monlor Date: Fri, 6 Mar 2020 15:10:15 +0800 Subject: [PATCH] 2020-03-06 15:10:15 --- tools/gitsync.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/gitsync.sh b/tools/gitsync.sh index a74cfbb..24458e1 100755 --- a/tools/gitsync.sh +++ b/tools/gitsync.sh @@ -120,11 +120,13 @@ deploy() { git init fi git config --local user.email "monlor@qq.com" - git config --local user.name "monlor" - if [ ! -f ".gitattributes" ]; then - git lfs install - git lfs track "*" - fi + git config --local user.name "monlor" + + git lfs install + rm -rf .gitattributes + git lfs track "*_linux_*" + git lfs track "*_darwin_*" + if git status &> /dev/null; then git add . git commit -m "$(TZ='Asia/Shanghai' date "+%Y-%m-%d %H:%M:%S")" -a