Code Monkey home page Code Monkey logo

autocommit's Issues

win10提交失败,运行路径不正确

系统信息

Operating System: Windows 10 专业版 64-bit (10.0, Build 18363) (18362.19h1_release.190318-1202)
Language: Chinese (Simplified) (Regional Setting: Chinese (Simplified))
Processor: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 CPUs), ~3.2GHz
Memory: 16384MB RAM

vscode版本

版本: 1.41.1 (user setup)
提交: 26076a4de974ead31f97692a0d32f90d735645c0
日期: 2019-12-18T14:58:56.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363

Shell信息

QQ截图20200113095402
cmd,power shell,WSL(Ubuntu)都试过了。

插件运行日志(必填):

git push失败很可能是你的网络有问题,请换到一个网络状况比较良好的地方,然后再项目下执行 git push操作。
错误信息:Error: Command failed: cd e:\test && git pull && git push
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git pull && git push
提交中...
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-13 09:46'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-13 09:46'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-13 15:42'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-13 15:42'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-13 21:45'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-13 21:45'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-13 12:32'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-13 12:32'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-13 07:22'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-13 07:22'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 18:14'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 18:14'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 17:23'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 17:23'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 19:40'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 19:40'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 20:51'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 20:51'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 22:45'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 22:45'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 09:19'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 09:19'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 19:31'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 19:31'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 21:25'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 21:25'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 22:40'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 22:40'
错误信息:Error: Command failed: cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 15:32'
fatal: not a git repository (or any of the parent directories): .git
 fatal: not a git repository (or any of the parent directories): .git

执行命令出错:cd e:\test && git add . && git commit -m 'autoCommit' --date='2020-01-12 15:32'
将要commit的日期: [{"value":"2020-01-12","commitNumber":0},{"value":"2020-01-13","commitNumber":0}]

程序运行参数(必填):

{
    "randomCommit": true,
    "itemSrc": "e:\\test",
    "fileName": "commit.md",
    "commitMsg": "autoCommit",
    "timeArr": [
        {
            "value": [
                "2020-01-12",
                "2020-01-13"
            ],
            "commitNumber": 0
        }
    ],
    "commitNumber": 10
}

怀疑可能是哪里出现问题

不知道源码是什么原理实现的,猜测是shell命令运行路径的问题。可以试试不用cd使用cwd指定路径试试

exec(
  "git status",
  {
    cwd: "e:/test/"
  },
  (err, stdout, stderr) => {}
);

提个小建议

如果不手动指定日期范围(手动太累,而且总有种习惯规律)的话,绿墙全部都占满咯,看着有点太假的感觉,自己看着都不好意思:relaxed:,希望能添加随机日期提交,比如说指定一个时间范围,2020-1-1 - 2020-8-20,能随机部分天数不提交,看着无规律

win10,还是跟之前一样报错

描述bug(必填)

vsc上手动可以提交推送

插件运行日志(必填):

数据: git push失败很可能是你的网络有问题,请换到一个网络状况比较良好的地方,然后再项目下执行 git push操作。
command: console-log
git push失败很可能是你的网络有问题,请换到一个网络状况比较良好的地方,然后再项目下执行 git push操作。
数据: 错误信息:Error: Command failed: git pull --rebase && git push
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
,'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

command: console-log
错误信息:Error: Command failed: git pull --rebase && git push
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

数据: 执行命令出错:git pull --rebase && git push
command: console-log
执行命令出错:git pull --rebase && git push
数据: 提交中
command: 提交中...
数据: 提交中...
command: console-log
提交中...
数据: commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T15:09:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T15:09:00+08:00' && git commit --amend --no-edit --date '2021-05-02T15:09:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

command: console-log
commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T15:09:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T15:09:00+08:00' && git commit --amend --no-edit --date '2021-05-02T15:09:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

数据: 错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T15:09:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T15:09:00+08:00' && git commit --amend --no-edit --date '2021-05-02T15:09:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
,'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

command: console-log
错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T15:09:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T15:09:00+08:00' && git commit --amend --no-edit --date '2021-05-02T15:09:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

数据: 执行命令出错:git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T15:09:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T15:09:00+08:00' && git commit --amend --no-edit --date '2021-05-02T15:09:00+08:00'
command: console-log
执行命令出错:git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T15:09:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T15:09:00+08:00' && git commit --amend --no-edit --date '2021-05-02T15:09:00+08:00'
数据: commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T23:37:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T23:37:00+08:00' && git commit --amend --no-edit --date '2021-05-02T23:37:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

command: console-log
commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T23:37:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T23:37:00+08:00' && git commit --amend --no-edit --date '2021-05-02T23:37:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

数据: 错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T23:37:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T23:37:00+08:00' && git commit --amend --no-edit --date '2021-05-02T23:37:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
,'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

command: console-log
错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T23:37:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T23:37:00+08:00' && git commit --amend --no-edit --date '2021-05-02T23:37:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

数据: 执行命令出错:git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T23:37:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T23:37:00+08:00' && git commit --amend --no-edit --date '2021-05-02T23:37:00+08:00'
command: console-log
执行命令出错:git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-02T23:37:00+08:00' && set GIT_AUTHOR_DATE='2021-05-02T23:37:00+08:00' && git commit --amend --no-edit --date '2021-05-02T23:37:00+08:00'
数据: commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T14:38:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T14:38:00+08:00' && git commit --amend --no-edit --date '2021-05-01T14:38:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

command: console-log
commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T14:38:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T14:38:00+08:00' && git commit --amend --no-edit --date '2021-05-01T14:38:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

数据: 错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T14:38:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T14:38:00+08:00' && git commit --amend --no-edit --date '2021-05-01T14:38:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
,'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

command: console-log
错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T14:38:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T14:38:00+08:00' && git commit --amend --no-edit --date '2021-05-01T14:38:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

数据: 执行命令出错:git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T14:38:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T14:38:00+08:00' && git commit --amend --no-edit --date '2021-05-01T14:38:00+08:00'
command: console-log
执行命令出错:git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T14:38:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T14:38:00+08:00' && git commit --amend --no-edit --date '2021-05-01T14:38:00+08:00'
数据: commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T07:11:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T07:11:00+08:00' && git commit --amend --no-edit --date '2021-05-01T07:11:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

command: console-log
commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T07:11:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T07:11:00+08:00' && git commit --amend --no-edit --date '2021-05-01T07:11:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

数据: 错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T07:11:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T07:11:00+08:00' && git commit --amend --no-edit --date '2021-05-01T07:11:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
,'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

command: console-log
错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T07:11:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T07:11:00+08:00' && git commit --amend --no-edit --date '2021-05-01T07:11:00+08:00'
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

数据: 执行命令出错:git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T07:11:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T07:11:00+08:00' && git commit --amend --no-edit --date '2021-05-01T07:11:00+08:00'
command: console-log
执行命令出错:git add . && git commit -m 'autoCommit' && set GIT_COMMITTER_DATE='2021-05-01T07:11:00+08:00' && set GIT_AUTHOR_DATE='2021-05-01T07:11:00+08:00' && git commit --amend --no-edit --date '2021-05-01T07:11:00+08:00'
数据: 总commit次数:,4
command: console-log
总commit次数: 4
数据: 总commit天数:,2
command: console-log
总commit天数: 2
数据: 将要commit的日期:,[{"value":"2021-05-01","commitNumber":2},{"value":"2021-05-02","commitNumber":2}]
command: console-log
将要commit的日期: [{"value":"2021-05-01","commitNumber":2},{"value":"2021-05-02","commitNumber":2}]


#### 程序运行参数(必填):
{"randomCommit":true,"itemSrc":"c:\\Users\\Xinteng\\Desktop\\dev airdrop\\dev-","fileName":"commit.md","commitMsg":"autoCommit","timeArr":[{"value":["2021-05-01","2021-05-02"],"commitNumber":2}],"commitNumber":2}

```js
// 参数

分支名

master

Win10 提交出错

报错信息:
保存参数信息
自动commit完成 总commit次数0
提交信息: Already up to date.

提交中...
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 03:23'
error: pathspec '03:23'' did not match any file(s) known to git
error: pathspec '03:23'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 03:23'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 06:08'
error: pathspec '06:08'' did not match any file(s) known to git
error: pathspec '06:08'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 06:08'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 07:53'
error: pathspec '07:53'' did not match any file(s) known to git
error: pathspec '07:53'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 07:53'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 02:27'
error: pathspec '02:27'' did not match any file(s) known to git
error: pathspec '02:27'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 02:27'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 07:02'
error: pathspec '07:02'' did not match any file(s) known to git
error: pathspec '07:02'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 07:02'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 08:36'
error: pathspec '08:36'' did not match any file(s) known to git
error: pathspec '08:36'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 08:36'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 23:34'
error: pathspec '23:34'' did not match any file(s) known to git
error: pathspec '23:34'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 23:34'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 16:15'
error: pathspec '16:15'' did not match any file(s) known to git
error: pathspec '16:15'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 16:15'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 15:18'
error: pathspec '15:18'' did not match any file(s) known to git
error: pathspec '15:18'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-14 15:18'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 15:21'
error: pathspec '15:21'' did not match any file(s) known to git
error: pathspec '15:21'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 15:21'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 20:17'
error: pathspec '20:17'' did not match any file(s) known to git
error: pathspec '20:17'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 20:17'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 22:36'
error: pathspec '22:36'' did not match any file(s) known to git
error: pathspec '22:36'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 22:36'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 17:47'
error: pathspec '17:47'' did not match any file(s) known to git
error: pathspec '17:47'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 17:47'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 08:07'
error: pathspec '08:07'' did not match any file(s) known to git
error: pathspec '08:07'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 08:07'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 19:45'
error: pathspec '19:45'' did not match any file(s) known to git
error: pathspec '19:45'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 19:45'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 20:44'
error: pathspec '20:44'' did not match any file(s) known to git
error: pathspec '20:44'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 20:44'
错误信息:Error: Command failed: cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 19:08'
error: pathspec '19:08'' did not match any file(s) known to git
error: pathspec '19:08'' did not match any file(s) known to git

执行命令出错:cd e:\work\gongsi_worl_git\autoCommit && git add . && git commit -m 'autoCommit' --date='2020-01-13 19:08'
将要commit的日期: [{"value":"2020-01-13","commitNumber":0},{"value":"2020-01-14","commitNumber":0}]

插件参数:
{
"randomCommit": true,
"itemSrc": "e:\work\gongsi_worl_git\autoCommit",
"fileName": "commit.md",
"commitMsg": "autoCommit",
"timeArr": [
{
"value": ["2020-01-13", "2020-01-14"],
"commitNumber": 0
}],
"commitNumber": 10
}

文件Push情况:
使用命令行是确保可以push成功的,如下图.

image

添加按星期几决定是否提交的功能

您的特性请求是否与问题相关?请描述
目前是选择commit日期范围,无法根据周几来选择,希望能改为 某段时间周六周日70%概率提交,周一到周五10%概率提交 的功能。一般来说周末空闲些,会提交更多代码,周中上班提的少,更真实。
描述一下你想要的解决方案.
日期范围选择后面加7个输入框,输入一周中每天的提交概率
描述你考虑过的备选方案
没有
其他相关
image
在公司的提交记录是这样的,感觉在家的应该是反过来的

在windows下有点小bug

您的特性请求是否与问题相关?请描述

插件里面是直接cd 到指定文件夹,但是windows系统里面假如vscode安装目录和项目所在目录 不在同一个文件夹,这个命令就会报错,提示没有这个目录。

描述一下你想要的解决方案.

希望能对这个cd命令做一下win的兼容

描述你考虑过的备选方案
对您考虑过的任何替代解决方案或特性的清晰而简明的描述。

其他相关
在这里添加关于特性请求的任何其他上下文或屏幕截图。

当 update 时,自动或定时 commit/push

我的需求是这样的,用 VS Code 作为 markdown 编辑器,当作云笔记使用;VS Code + Github,已经满足基础的需求,还差 auto commit 这样的插件,帮我把更新提交,比如定时下班时间;望采纳。

提交日志中有错误

注意:

  1. 请先阅读文档: 使用须知(可能该问题已在文档中有过说明)
  2. 搜一搜以前关闭的issue看有没有相似的问题可以帮助解决问题。
  3. issue提的越清晰,越容易定位问题/找到bug,越快速的解决问题。

描述bug(必填)

一个清楚而简洁的bug描述。

插件运行日志(必填):

// 日志内容
There is no tracking information for the current branch. Please specify whic

虽然设置了勾选了随机,但提交的小绿点都是一个颜色

描述bug(必填)

如题

插件运行日志(必填):

保存参数信息
自动commit完成 总commit次数7
提交信息: Already up to date.

提交中...
7commit信息 [master c2918cb] 'autoCommit'
Date: Sat Apr 18 21:51:00 2020 +0800
1 file changed, 3 insertions(+), 3 deletions(-)

7commit内容 2020-04-18T21:51:00+08:00
随机数:54506
提交次数:7
6commit信息 [master 15a7f8d] 'autoCommit'
Date: Fri Apr 17 13:15:00 2020 +0800
1 file changed, 3 insertions(+), 3 deletions(-)

6commit内容 2020-04-17T13:15:00+08:00
随机数:42767
提交次数:6
5commit信息 [master 7dd9540] 'autoCommit'
Date: Thu Apr 16 15:37:00 2020 +0800
1 file changed, 3 insertions(+), 3 deletions(-)

5commit内容 2020-04-16T15:37:00+08:00
随机数:28755
提交次数:5
4commit信息 [master 469d10b] 'autoCommit'
Date: Wed Apr 15 10:02:00 2020 +0800
1 file changed, 3 insertions(+), 3 deletions(-)

4commit内容 2020-04-15T10:02:00+08:00
随机数:82846
提交次数:4
3commit信息 [master cb4eb60] 'autoCommit'
Date: Tue Apr 14 20:37:00 2020 +0800
1 file changed, 3 insertions(+), 3 deletions(-)

3commit内容 2020-04-14T20:37:00+08:00
随机数:23692
提交次数:3
2commit信息 [master 445a31f] 'autoCommit'
Date: Mon Apr 13 08:14:00 2020 +0800
1 file changed, 3 insertions(+), 3 deletions(-)

2commit内容 2020-04-13T08:14:00+08:00
随机数:88773
提交次数:2
1commit信息 [master 4c4fcd9] 'autoCommit'
Date: Sun Apr 12 12:30:00 2020 +0800
1 file changed, 3 insertions(+), 3 deletions(-)

1commit内容 2020-04-12T12:30:00+08:00
随机数:92126
提交次数:1
将要commit的日期: [{"value":"2020-04-12","commitNumber":1},{"value":"2020-04-13","commitNumber":1},{"value":"2020-04-14","commitNumber":1},{"value":"2020-04-15","commitNumber":1},{"value":"2020-04-16","commitNumber":1},{"value":"2020-04-17","commitNumber":1},{"value":"2020-04-18","commitNumber":1}]

程序运行参数(必填):

{"commitMsg":"autoCommit","commitNumber":14,"fileName":"commit.md","itemSrc":"d:/workspace/fake-commit","randomCommit":true,"timeArr":[{"commitNumber":1,"value":["2020-04-12","2020-04-18"]}]}

怀疑可能是哪里出现问题

可能是随机commit次数没有生效???

屏幕截图(选填)

image
image

问题相关(选填)

没有效果

是不是因为branch现在默认的是main的原因?正常运行了但是设置的前天的时间,小格子没有变绿

插件好像不能用了?

昨天写了东西,结果忘了提交,今天想用auto commit弥补一下,结果发现失败了,心态炸裂。想辛苦问下作者,github是把这个封禁了嘛,或者说您有没有更新的计划?

push不了

win提交的记录,手动可以修改,

提交中...
commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-29T04:43:00+08:00' GIT_AUTHOR_DATE='2020-06-29T04:43:00+08:00' git commit --amend --no-edit --date '2020-06-29T04:43:00+08:00'
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-29T04:43:00+08:00' GIT_AUTHOR_DATE='2020-06-29T04:43:00+08:00' git commit --amend --no-edit --date '2020-06-29T04:43:00+08:00'
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

执行命令出错:git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-29T04:43:00+08:00' GIT_AUTHOR_DATE='2020-06-29T04:43:00+08:00' git commit --amend --no-edit --date '2020-06-29T04:43:00+08:00'
commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-28T15:58:00+08:00' GIT_AUTHOR_DATE='2020-06-28T15:58:00+08:00' git commit --amend --no-edit --date '2020-06-28T15:58:00+08:00'
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-28T15:58:00+08:00' GIT_AUTHOR_DATE='2020-06-28T15:58:00+08:00' git commit --amend --no-edit --date '2020-06-28T15:58:00+08:00'
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

执行命令出错:git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-28T15:58:00+08:00' GIT_AUTHOR_DATE='2020-06-28T15:58:00+08:00' git commit --amend --no-edit --date '2020-06-28T15:58:00+08:00'
commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-27T12:53:00+08:00' GIT_AUTHOR_DATE='2020-06-27T12:53:00+08:00' git commit --amend --no-edit --date '2020-06-27T12:53:00+08:00'
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-27T12:53:00+08:00' GIT_AUTHOR_DATE='2020-06-27T12:53:00+08:00' git commit --amend --no-edit --date '2020-06-27T12:53:00+08:00'
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

执行命令出错:git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-27T12:53:00+08:00' GIT_AUTHOR_DATE='2020-06-27T12:53:00+08:00' git commit --amend --no-edit --date '2020-06-27T12:53:00+08:00'
commit出错:Error: Command failed: git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-26T01:26:00+08:00' GIT_AUTHOR_DATE='2020-06-26T01:26:00+08:00' git commit --amend --no-edit --date '2020-06-26T01:26:00+08:00'
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

错误信息:Error: Command failed: git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-26T01:26:00+08:00' GIT_AUTHOR_DATE='2020-06-26T01:26:00+08:00' git commit --amend --no-edit --date '2020-06-26T01:26:00+08:00'
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
warning: LF will be replaced by CRLF in commit.md.
The file will have its original line endings in your working directory
'GIT_COMMITTER_DATE' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

执行命令出错:git add . && git commit -m 'autoCommit' && GIT_COMMITTER_DATE='2020-06-26T01:26:00+08:00' GIT_AUTHOR_DATE='2020-06-26T01:26:00+08:00' git commit --amend --no-edit --date '2020-06-26T01:26:00+08:00'
总commit次数: 4
总commit天数: 4
将要commit的日期: [{"value":"2020-06-26","commitNumber":1},{"value":"2020-06-27","commitNumber":1},{"value":"2020-06-28","commitNumber":1},{"value":"2020-06-29","commitNumber":1}]

提交当前日期可以自动提交成功,提交历史日期报错

注意:

  1. 请先阅读文档: 使用须知(可能该问题已在文档中有过说明)
  2. 搜一搜以前关闭的issue看有没有相似的问题可以帮助解决问题。
  3. issue提的越清晰,越容易定位问题/找到bug,越快速的解决问题。

描述bug(必填)

提交当前日期可以自动提交成功,提交历史日期报错

插件运行日志(必填):

错误信息:Error: Command failed: git pull --rebase && git push
fatal: unable to access 'https://github.com/rabbitcccc/test1.git/': Failed to connect to github.com port 443 after 21070 ms: Timed out
fatal: unable to access

// 日志内容

程序运行参数(必填):

// 参数

插件运行截图

Git仓库提交截图

提交成功给个截图
首页的截图

分支名

master

怀疑可能是哪里出现问题

屏幕截图(选填)

如果方便的话,添加截图来帮助解释你的问题:

问题相关(选填)

比如git的状态: 分支、merge等

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.