# Change to the src/images directory, or exit if the directory doesn't exist Set-Location -Path C:\Users\kola\project\school-system\web_dist\images -ErrorAction Stop # 1. 添加当前目录所有文件(包含.gitignore忽略的文件也一并加入,等价svn --no-ignore --force) git add --force . # 2. 提交,备注update git commit -m "update" git push origin proj_icampus_dev ssh hb127 "cd /data1/wwwroot/default/highedu/web_dist_server/dist && git pull && exit"