Code Monkey home page Code Monkey logo

Comments (9)

OBKoro1 avatar OBKoro1 commented on July 24, 2024

@asdjgfr 因为项目(e:\test)没有.git文件夹,所以会导致执行git命令失败。
你先自己commit一下,看能不能commit成功。

from autocommit.

chendongchun avatar chendongchun commented on July 24, 2024

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.

liunnn1994 avatar liunnn1994 commented on July 24, 2024

@asdjgfr 因为项目(e:\test)没有.git文件夹,所以会导致执行git命令失败。
你先自己commit一下,看能不能commit成功。

@OBKoro1 win下面的操作和linux上的不一样,可以pwd看一下路径,ubuntu 18.04 LTS就没有问题

from autocommit.

lifebaii avatar lifebaii commented on July 24, 2024

@OBKoro1 可能是因为命令使用了反斜杠"\",而不是斜杠"/"
image

from autocommit.

OBKoro1 avatar OBKoro1 commented on July 24, 2024

最新版本已修复该问题,如果觉得本插件还不错的话给个Star吧~

from autocommit.

AaronWhite95 avatar AaronWhite95 commented on July 24, 2024

命令复制出来在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.

zhangyu9609 avatar zhangyu9609 commented on July 24, 2024

下了最新的了,还是报了跟上面朋友一样的错误

from autocommit.

OBKoro1 avatar OBKoro1 commented on July 24, 2024

@zhangyu9609 @chendongchun @asdjgfr 从一个磁盘进入另一个磁盘的问题已修复。

from autocommit.

zhangyu9609 avatar zhangyu9609 commented on July 24, 2024

@zhangyu9609 @chendongchun @asdjgfr 从一个磁盘进入另一个磁盘的问题已修复。

已更新,错误已修复,感谢。

from autocommit.

Related Issues (20)

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.