2020-03-05 19:07:04

This commit is contained in:
monlor
2020-03-05 19:07:04 +08:00
parent 72fd790abd
commit 2e0f81be7a
2 changed files with 4 additions and 6 deletions

View File

@@ -102,7 +102,6 @@ reset() {
# $1: path to push
# $2: remote branch name
# $3: remote url with token
# $4: git extra param
deploy() {
cd $1
@@ -111,8 +110,7 @@ deploy() {
git config --local user.name "monlor"
git add .
git commit -m "$(TZ='Asia/Shanghai' date "+%Y-%m-%d %H:%M:%S")" -a
git push "$3" master:"$2" -f "$4"
git push "$3" master:"$2" -f "$4"
git push "$3" master:"$2" -f
}