Linux platform bash file be used to git push code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Linux platform bash file | |
echo "正在添加文件..." | |
git add . | |
echo -n "正在提交备注...,请填写备注(可空):" | |
read remarks | |
if [ ! -n "$remarks" ];then | |
remarks="常规提交" | |
fi | |
git commit -m "$remarks" | |
echo "正在开始提交代码..." | |
git push origin master | |
echo "代码提交成功,正在关闭..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment