From e13689fe1ae11ccab2453a7695176fe7db950012 Mon Sep 17 00:00:00 2001 From: jiapengyu Date: Mon, 27 Jul 2026 13:53:08 +0800 Subject: [PATCH] Add full huishou project --- git-push.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/git-push.js b/git-push.js index 8d254188..7d00cd16 100644 --- a/git-push.js +++ b/git-push.js @@ -6,13 +6,21 @@ try { console.log('=== Add all files ==='); execSync(`${gitPath} add .`, { stdio: 'inherit', cwd: __dirname }); - console.log('=== Commit code ==='); - execSync(`${gitPath} commit -m "Initial commit - huishou project"`, { stdio: 'inherit', cwd: __dirname }); + console.log('=== Commit all files ==='); + execSync(`${gitPath} commit -m "Add full huishou project"`, { stdio: 'inherit', cwd: __dirname }); console.log('=== Push to remote ==='); - execSync(`${gitPath} push -u origin master`, { stdio: 'inherit', cwd: __dirname }); + const env = { ...process.env }; + env.GIT_SSH_COMMAND = 'ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'; + + execSync(`${gitPath} push origin master`, { + stdio: 'inherit', + cwd: __dirname, + env: env + }); console.log('=== Success ==='); + } catch (error) { console.error('=== Failed ==='); console.error('Exit code:', error.status);