Re: [git-users] Just getting started

2023-07-14 Thread Chris Stone
I have always used double quotes for commit msgs. git commit -m "message
here" I also believe that is the expected format when using -m

On Fri, Jul 14, 2023 at 8:50 AM Tassilo Horn  wrote:

> David Aldrich  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 ..." 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/87ilamzgvx.fsf%40gnu.org.
>

-- 
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/CAEHZf3Ytf1WgQOnyTvu19w645GsSGqv7zMwoiVs9TXKSaNsyvQ%40mail.gmail.com.


Re: [git-users] Just getting started

2023-07-14 Thread David Aldrich
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  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 ..." 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.


Re: [git-users] Just getting started

2023-07-14 Thread Tassilo Horn
David Aldrich  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 ..." 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/87ilamzgvx.fsf%40gnu.org.


[git-users] Just getting started

2023-07-14 Thread David Aldrich
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 ..." 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?

-- 
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/6188abe6-f5a6-4f59-a394-c7d5350f6471n%40googlegroups.com.