From eef5416ca90930e58c49013eff1f85a5a3094eac Mon Sep 17 00:00:00 2001 From: OBKoro1 <1677593011@qq.com> Date: Fri, 20 Dec 2019 15:47:09 +0800 Subject: [PATCH] init --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 5655c73..470f505 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ * Author : OBKoro1 * Date : 2019-12-19 20:23:57 * LastEditors : OBKoro1 - * LastEditTime : 2019-12-20 15:40:06 + * LastEditTime : 2019-12-20 15:46:58 * FilePath : /autoCommit/index.js * Description : 自动commit * https://github.com/OBKoro1 @@ -23,8 +23,9 @@ class autoCommit { this.commit(); } commit() { + // git commit --amend --date="2019-01-02T00:00:00+0800" -am 'autoCommit' this.myExecSync( - `git add . && git commit --amend --date="2019-01-02T00:00:00+0800" -am 'autoCommit' && git push` + `git add . && git commit -m 'autoCommit' --date='2019-01-02T00:00:00+0800' && git pull && git push origin master` ); }