Git commit only accept slash?

0

I got this error: pathspec '.\.filename' did not match any file(s) known to git. when I tried to commit with file path include \, but now it only accepts path with /.

I am running windows 10 with cygwin, previously it works fine, and not sure what exactly cause this problem, any idea?

Just to be clear:

It works!

git commit -m "something" .\filename

It does not work:

git commit -m "something" ./filename

Jen-Chieh Shen

Posted 2019-01-06T16:00:24.867

Reputation: 1

1

There is a very long discussion about this at Cygwin Git with Windows paths which ended with some patches on 15/12/2018. Have you tried updating Cygwin recently?

– DavidPostill – 2019-01-06T16:13:46.070

1In addition, are your sure you have works and not work the correct way around (as it doesn't agree with what you said at the start of the question). – DavidPostill – 2019-01-06T16:14:56.157

Are you running the Cygwin version of Git or some other version? – DavidPostill – 2019-01-06T16:15:32.457

3Aren't your examples opposite of what you initially said? – Kamil Maciorowski – 2019-01-06T16:29:40.710

No answers