Hi Tassilo

I was using Windows command prompt. Using git-bash instead fixed the 
problem. Thank you.

BR
David

On Friday, July 14, 2023 at 3:50:54 PM UTC+1 Tassilo Horn wrote:

> David Aldrich <david.ald...@gmail.com> writes:
>
> Hi David,
>
> > I am at the absolute beginning of learning git. Using git on Windows.
> > I have done:
> >
> >>git init
> >>git add *.cpp
> >>git status
> > On branch master
> >
> > No commits yet
> >
> > Changes to be committed:
> > (use "git rm --cached <file>..." to unstage)
> > new file: file_A.cpp
> > new file: file_B.cpp
> >
> >>git commit -m 'initial files'
> > error: pathspec 'files'' did not match any file(s) known to git
> >
> > Why is this failing?
>
> What shell are you using? The above error suggests that the quoted
> string 'initial files' is interpreted as two arguments 'initial and
> files'.
>
> IIRC, Git for windows comes with git-bash which is a proper unix shell
> which probably also has completion for git commands. In case you have
> to stick to the shell you are using right now, you need to figure out
> how to properly quote strings containing spaces...
>
> Bye,
> Tassilo
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/50b7da67-d354-4b20-a614-3177e9c9b60fn%40googlegroups.com.

Reply via email to