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
相关文章
相关标签/搜索