sync.sh 262 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 # chmod u+x sync.sh cp -R dist/* G:\\workspaceAll\\IdeaProjects\\wzhi cd G:\\workspaceAll\\IdeaProjects\\wzhi read -p "请输入commit提交的描述: " msg if [[ $msg == "" ]]; then msg="默认提交" fi git add -A git commit -m $msg git push git status