How to use newline character in text in cmd batch?

后端 未结 12 1917
忘掉有多难
忘掉有多难 2020-12-31 07:08

I would like to do

svn commit -m \"\"

But message should have two lines:

Commit by: firstuser
Bug track: 92         


        
12条回答
  •  抹茶落季
    2020-12-31 07:25

    Write the message in text editor and just copy and paste it to terminal(command editor).

    1. Just type message in a text editor in multiple lines.

      -m "Message line

      Message line 2

      Message line 3"

    2. Type the required command in command editor.

      svn command

    3. Copy and paste the message content from text editor to command editor.

      svn command -m "Message line 1.

      Message line 2

      Message line 3"

    4.Execute Enter .

    5.It works :)

提交回复
热议问题