All of lore.kernel.org
 help / color / mirror / Atom feed
* commiting a change from command line with newlines.
@ 2020-07-03  4:22 Tomas
  2020-07-03  4:54 ` Junio C Hamano
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tomas @ 2020-07-03  4:22 UTC (permalink / raw)
  To: git

Hello,

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...

Since I'm using a unix like system I even tried with pipes (and xargs, the necessary evil) but with something like "printf "a\nb" | xargs git commit -m" b gets interpreted as something else. 

Does anybody know of a way to adorn a commit message with newlines in a single git commit command? 
Thanks in advance.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-03  5:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-03  4:22 commiting a change from command line with newlines Tomas
2020-07-03  4:54 ` Junio C Hamano
2020-07-03  4:55 ` brian m. carlson
2020-07-03  5:14 ` Kevin Daudt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.