Re: commiting a change from command line with newlines.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tomas <correo@xxxxxxxxxxxxxxx> writes:

> I'm trying to write stanzas in my commit message, and naturally
> the ASCII newline character is the best tool for this, beautifully
> integrated throughout my whole system, from my keyboard to my
> screen.
>
> My question is, how can I add a newline from the git command line
> without opening an external program like vi, atom, notepad, word
> etc...

Just like you pass any command an argument that has newline(s) in
it, e.g.

    $ git commit -s -m 'area: teach gostak to distim doshes[ENTER]
    > [ENTER]
    > Gostaks inherently want to distim doshes, so let them do so[ENTER]
    > freely.' -a[ENTER]

you can give such a string to "git commit" as an argument to its
"-m" option.






[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux