Linux腳本git提交代碼

習慣於命令行手動提交代碼,但每次都要輸出一樣的命令,索性寫個腳本:git #!/bin/bash git status read -r -p "是否繼續提交? [Y/n] " input case $input in [yY][eE][sS]|[yY]) echo "繼續提交" git add -A git commit -m $1 git push origin $2
相關文章
相關標籤/搜索