Comments (9)
@asdjgfr 因为项目(e:\test
)没有.git
文件夹,所以会导致执行git
命令失败。
你先自己commit一下,看能不能commit
成功。
from autocommit.
win 下的命令是有问题,需切换到盘符下,再执行命令,下列命令望楼主采纳
let win_index = this.paramsObj.itemSrc.indexOf(":"); let itemSrc =
cd ${this.paramsObj.itemSrc}; if (win_index != -1) { // win itemSrc = this.paramsObj.itemSrc.substring(0,win_index + 1); itemSrc +=
&& cd ${this.paramsObj.itemSrc}; } let cmd = itemSrc +
&& git add . && git commit -m '${this.paramsObj.commitMsg}' --date='${time}';
from autocommit.
@asdjgfr 因为项目(
e:\test
)没有.git
文件夹,所以会导致执行git
命令失败。
你先自己commit一下,看能不能commit
成功。
@OBKoro1 win
下面的操作和linux
上的不一样,可以pwd
看一下路径,ubuntu 18.04 LTS
就没有问题
from autocommit.
@OBKoro1 可能是因为命令使用了反斜杠"\",而不是斜杠"/"
from autocommit.
最新版本已修复该问题,如果觉得本插件还不错的话给个Star吧~
from autocommit.
命令复制出来在git bash里可以运行,但是在vscode里插件里就会失败,请问是什么原因呢
git push失败很可能是你的网络有问题,请换到一个网络状况比较良好的地方,然后再项目下执行 git push操作。
错误信息:Error: Command failed: cd f:/autocommit && 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 f:/autocommit && git pull && git push
提交中...
错误信息:Error: Command failed: cd f:/autocommit && git add . && git commit -m 'autoCommit' --date='2020-02-03T09:11:00+08:00'
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 f:/autocommit && git add . && git commit -m 'autoCommit' --date='2020-02-03T09:11:00+08:00'
错误信息:Error: Command failed: cd f:/autocommit && git add . && git commit -m 'autoCommit' --date='2020-02-03T16:30:00+08:00'
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 f:/autocommit && git add . && git commit -m 'autoCommit' --date='2020-02-03T16:30:00+08:00'
错误信息:Error: Command failed: cd f:/autocommit && git add . && git commit -m 'autoCommit' --date='2020-02-03T21:31:00+08:00'
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 f:/autocommit && git add . && git commit -m 'autoCommit' --date='2020-02-03T21:31:00+08:00'
错误信息:Error: Command failed: cd f:/autocommit && git add . && git commit -m 'autoCommit' --date='2020-02-02T18:57:00+08:00'
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 f:/autocommit && git add . && git commit -m 'autoCommit' --date='2020-02-02T18:57:00+08:00'
错误信息:Error: Command failed: cd f:/autocommit && git add . && git commit -m 'autoCommit' --date='2020-02-02T22:43:00+08:00'
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 f:/autocommit && git add . && git commit -m 'autoCommit' --date='2020-02-02T22:43:00+08:00'
将要commit的日期: [{"value":"2020-02-02","commitNumber":0},{"value":"2020-02-03","commitNumber":0}]
from autocommit.
下了最新的了,还是报了跟上面朋友一样的错误
from autocommit.
@zhangyu9609 @chendongchun @asdjgfr 从一个磁盘进入另一个磁盘的问题已修复。
from autocommit.
@zhangyu9609 @chendongchun @asdjgfr 从一个磁盘进入另一个磁盘的问题已修复。
已更新,错误已修复,感谢。
from autocommit.
Related Issues (20)
- 提个小建议 HOT 5
- 成功提交,但是并没有刷新之前的git commit记录 HOT 3
- 插件好像不能用了? HOT 2
- push不了 HOT 1
- 谷歌浏览器打开好像没什么问题,但是换了个火狐浏览器去没效果哦,别人看到我的GitHub也是没效果 HOT 2
- 添加图片
- 这个问题日期不对呀,2021可以看到,点击2020就没效果了 HOT 1
- 安装后找不到插件 HOT 2
- win10,还是跟之前一样报错 HOT 7
- win10 请选择要commit的项目文件夹 HOT 1
- Win10 提交出错 HOT 1
- 当 update 时,自动或定时 commit/push HOT 3
- 提交当前日期可以自动提交成功,提交历史日期报错 HOT 1
- 添加按星期几决定是否提交的功能 HOT 1
- 提交日志中有错误 HOT 1
- VSCode 设置间隔提交无效 HOT 2
- 没有效果 HOT 1
- 在windows下有点小bug HOT 2
- 虽然设置了勾选了随机,但提交的小绿点都是一个颜色 HOT 1
- 问下那个自动提交工具窗口是怎么打开的 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autocommit.