简化git的push等操作
以简便方式使用git
我使用 GitHub Pages,
更改程序后会上传到 GitHub 进行确认,
不可能在本地进行吗?
虽然知道努力就能做到,
但那样太麻烦了吧。
所以是什么意思?
什么意思?
我决定将常见的git操作add→commit→push的流程作为shell脚本放在run.sh中进行。在开发真正的应用程序时,这样做可能会被严厉批评,但在个人开发中,即使出错也没有问题。如果有更好的表情符号,请告诉我。
if [ "$1" = "" ]
then
echo 'コメントよこせ'
echo '( ´ ▽ ` )ノ'
else
echo $1
echo -e '\e[36mgit add .\e[36m'
git add .
echo -e "\e[36mgit commit -m $1\e[36m"
git commit -m $1
echo -e '\e[36mgit push -u origin master\e[36m'
git push -u origin master
fi