mirror of
https://github.com/OBKoro1/autoCommit.git
synced 2024-12-23 01:29:20 +08:00
autoCommit
This commit is contained in:
parent
1fd11ec05a
commit
d6d18ff8f1
@ -2,7 +2,7 @@
|
||||
* Author : OBKoro1
|
||||
* Date : 2019-12-19 20:23:57
|
||||
* LastEditors : OBKoro1
|
||||
* LastEditTime : 2019-12-20 11:11:29
|
||||
* LastEditTime : 2019-12-20 11:26:24
|
||||
* FilePath : /autoCommit/index.js
|
||||
* Description : 自动commit
|
||||
* https://github.com/OBKoro1
|
||||
@ -23,6 +23,7 @@ class autoCommit {
|
||||
this.commit()
|
||||
}
|
||||
commit() {
|
||||
this.myExecSync(`sudo systemsetup -setusingnetworktime off && sudo systemsetup -setdate 09/02/19 && sudo systemsetup -setusingnetworktime on`)
|
||||
this.myExecSync(`git add . && git commit -m 'autoCommit' && git pull && git push`)
|
||||
}
|
||||
|
||||
@ -39,6 +40,7 @@ class autoCommit {
|
||||
});
|
||||
return res;
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
console.log(`执行命令出错:${cmd}`);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user