一次性push

This commit is contained in:
OBKoro1 2020-01-06 16:10:26 +08:00
parent abe2349cae
commit 8bf8eb9b92
4 changed files with 4 additions and 15 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -2,18 +2,6 @@
# 用于学习交流 # 用于学习交流
<!-- TODO: 18年 -->
<!-- TODO: 前面先选中的日期会覆盖后面的日期 -->
<!-- TODO: html的链接 --> <!-- TODO: html的链接 -->
<!-- TODO: 可以挂在后台慢慢commit -->
<!-- TODO: icon -->
<!-- 注意保持git干净不要有未合并merge、rebase等情况 -->
<!-- TODO: 提交到分支不会显示在绿色格子里面 合并后 才有 -->
<!-- TODO: commit的颜色 --> <!-- TODO: commit的颜色 -->

View File

@ -2,7 +2,7 @@
* Author : OBKoro1 * Author : OBKoro1
* Date : 2019-12-30 16:59:30 * Date : 2019-12-30 16:59:30
* LastEditors : OBKoro1 * LastEditors : OBKoro1
* LastEditTime : 2020-01-04 11:14:22 * LastEditTime : 2020-01-04 15:14:39
* FilePath : /autoCommit/src/models/commitHandle.ts * FilePath : /autoCommit/src/models/commitHandle.ts
* Description : commit * Description : commit
* https://github.com/OBKoro1 * https://github.com/OBKoro1
@ -114,7 +114,7 @@ class CommitHandle {
try { try {
// 异步执行命令 让出线程 打印日志 等 // 异步执行命令 让出线程 打印日志 等
commitMsg = await new Promise((resolve, reject) => { commitMsg = await new Promise((resolve, reject) => {
let cmd = `cd ${this.paramsObj.itemSrc} && git add . && git commit -m '${this.paramsObj.commitMsg}' --date='${time}' && git pull && git push`; let cmd = `cd ${this.paramsObj.itemSrc} && git add . && git commit -m '${this.paramsObj.commitMsg}' --date='${time}'`;
exec(cmd, (error, stdout, stderr) => { exec(cmd, (error, stdout, stderr) => {
if (error) { if (error) {
outputLog(`执行命令出错:${cmd}`); outputLog(`执行命令出错:${cmd}`);
@ -142,6 +142,7 @@ class CommitHandle {
totalNum++; totalNum++;
} }
} }
this.myExecSync(`cd ${this.paramsObj.itemSrc} && git pull && git push`)
this.commitEnd(totalNum); this.commitEnd(totalNum);
} }
commitEnd(totalNum: number) { commitEnd(totalNum: number) {

View File

@ -96,7 +96,7 @@
<el-form-item> <el-form-item>
<label slot="label"> <label slot="label">
<el-tooltip content="点击开始commit,插件运行所需要的参数" placement="top-start"> <el-tooltip content="点击开始commit,插件运行所需要的参数" placement="top-start">
<span>程序参数 :</span> <span>插件参数 :</span>
</el-tooltip> </el-tooltip>
</label> </label>
<el-input @input="watchParamsChange" type="textarea" <el-input @input="watchParamsChange" type="textarea"