diff --git a/frontend/.husky/pre-push b/frontend/.husky/pre-push index 8443a739..27694f8f 100755 --- a/frontend/.husky/pre-push +++ b/frontend/.husky/pre-push @@ -16,10 +16,8 @@ if [[ $BRANCH == feature/* || $BRANCH == fix/* ]]; then fi # 只有在明确要求时才推送到 GitHub - if [[ "$1" == "--with-github" ]]; then - if echo "$REMOTES" | grep -q "github"; then - echo "Pushing to GitHub..." - git push github $BRANCH - fi + if echo "$REMOTES" | grep -q "github"; then + echo "Pushing to GitHub..." + git push github $BRANCH fi fi diff --git a/frontend/package.json b/frontend/package.json index 5d09c20d..d8f2cfa3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -14,8 +14,7 @@ "dev": "lerna run dev --scope=core --stream", "stop": "kill-port --port 5000", "scan": "i18next-scanner --config i18next-scanner.config.js", - "prepare": "husky", - "push:all": "git push && git push --with-github" + "prepare": "husky" }, "keywords": [], "author": "",