From 1bf43cf1378121b2d153eadacbe5d5d99062b224 Mon Sep 17 00:00:00 2001 From: scarqin Date: Wed, 18 Dec 2024 17:30:16 +0800 Subject: [PATCH] test --- .husky/{pre-push => post-push} | 7 ------- 1 file changed, 7 deletions(-) rename .husky/{pre-push => post-push} (68%) mode change 100755 => 100644 diff --git a/.husky/pre-push b/.husky/post-push old mode 100755 new mode 100644 similarity index 68% rename from .husky/pre-push rename to .husky/post-push index a0b31f74..378f5ccf --- a/.husky/pre-push +++ b/.husky/post-push @@ -4,7 +4,6 @@ BRANCH=$(git rev-parse --abbrev-ref HEAD) # 如果是从 feature 分支推送 -echo $BRANCH if [[ $BRANCH == feature/* || $BRANCH == fix/* ]]; then # 获取远程仓库列表 REMOTES=$(git remote) @@ -14,10 +13,4 @@ if [[ $BRANCH == feature/* || $BRANCH == fix/* ]]; then echo "Pushing $BRANCH to GitLab..." git push gitlab $BRANCH fi - - # 只有在明确要求时才推送到 GitHub - if echo "$REMOTES" | grep -q "github"; then - echo "Pushing $BRANCH to GitHub..." - git push github $BRANCH - fi fi