mirror of
https://github.com/OBKoro1/autoCommit.git
synced 2024-11-25 11:59:23 +08:00
todo
This commit is contained in:
parent
c7cac6cd39
commit
53eee36cab
@ -2,7 +2,7 @@
|
||||
* Author : OBKoro1
|
||||
* Date : 2019-12-30 16:59:30
|
||||
* LastEditors : OBKoro1
|
||||
* LastEditTime : 2020-01-02 22:14:59
|
||||
* LastEditTime : 2020-01-02 22:15:59
|
||||
* FilePath : /autoCommit/src/models/commitHandle.ts
|
||||
* Description : commit 具体操作
|
||||
* https://github.com/OBKoro1
|
||||
@ -114,7 +114,6 @@ class CommitHandle {
|
||||
try {
|
||||
// 异步执行命令 让出线程 打印日志 等
|
||||
commitMsg = await new Promise((resolve, reject) => {
|
||||
// TODO: git push 到当前分支
|
||||
let cmd = `cd ${this.paramsObj.itemSrc} && git add . && git commit -m 'autoCommit' --date='${time}' && git pull && git push`;
|
||||
exec(cmd, (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user