利用bash自动提交git

1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env sh
set -e

git init
git status
git pull
git add -A
git commit -m 'deploy'
git push

cd -