22 lines
613 B
Batchfile
22 lines
613 B
Batchfile
@echo off
|
|
cd /d "d:\Trae\huishou"
|
|
|
|
echo Step 1: Remove index.lock
|
|
del ".git\index.lock" 2>nul
|
|
|
|
echo Step 2: Add all files
|
|
"D:\Git\bin\git.exe" add --all
|
|
|
|
echo Step 3: Commit
|
|
"D:\Git\bin\git.exe" commit -m "Initial commit - full huishou project"
|
|
|
|
echo Step 4: Set remote
|
|
"D:\Git\bin\git.exe" remote add origin git@git.torchcloud.cn:jiapengyu/huishou.git 2>nul || "D:\Git\bin\git.exe" remote set-url origin git@git.torchcloud.cn:jiapengyu/huishou.git
|
|
|
|
echo Step 5: Push
|
|
set GIT_SSH_COMMAND=ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
|
|
"D:\Git\bin\git.exe" push -f origin master
|
|
|
|
echo Done!
|
|
pause
|