That is an instruction to the shell. Basically it says "execute git commit
content-a95.php, and if that command succeeds, execute
excercises/css/excss57.html -m 'added…'"

Now if you don't provide a commit message to git (that is the -m "added
blahblah" part), Git will pop up your favourite (?) editor, and ask you to
write one. Should you entered a commit message there and save the file
instead of just closing that editor, your shell would have complained about
excss57.html not being executable.

Best,
Gergely

On Sun, Sep 4, 2016, 23:00 <edgaroliveira....@gmail.com> wrote:

> It's simple,
> Simple omit the && and use:
> git commit content/content-a95.php exercises/css/excss57.html -m "added
> excss57.html"
>
> Only I has the path wrong :P
> But why and what this command do with parameter &&?
>
> domingo, 4 de Setembro de 2016 às 21:56:51 UTC+1, edgaroli...@gmail.com
> escreveu:
>>
>> Hello everyone,
>>
>> I have three files on stage and I need commit only two of them. I was
>> trying this
>>
>> git commit content/content-a95.php && content/css/excss57.html -m "added
>> excss57.html"
>>
>> but opened the editor nano and asked me to write an commit. I was
>> insecure about this function and abort the mission :P
>> I know only commit one of them, but I want commit two at once, in this
>> case, from stage to repository. It's possible?
>>
>> Thanks
>>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to