首先在需要提交代码的跟路径下新建文件 xx.sh

xx.sh 中输入
msg=$1
if [ -n "$msg" ]; then
    gss
    git add .
    git commit -m "${msg}"
    git pull
    git push
    echo "????‍♂️finish push"
else
    echo "????‍♂️ please add commit"
fi
chmod 755 xx.sh 提升脚本权限 /xx.sh 执行
在ignore 中忽略掉该文件

相关文章:

  • 2022-01-11
  • 2021-09-14
  • 2022-12-23
  • 2021-04-29
  • 2021-05-23
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-08-02
  • 2022-02-05
  • 2021-10-07
相关资源
相似解决方案