git commit -m “123″
如果备注内容想要换行,则不会写了。
搜:
git commit add comment new line
bash – Add line break to git commit -m from command line – Stack Overflow
Git tip: How to write a multiline commit message | Iqbal Nouyed
How can I make git commit messages divide into multiple lines? – Stack Overflow
【总结】
先输入双引号,但是不要输入后面的双引号,然后就可以输入多行了
直到最后输入双引号,再回车就是结束
<code>licrifandeMacBook-Pro:crifanLib crifan$ git commit -m "1. add isAllDigitOrLetter > 2. add saveLastLogined, lastIsLogined > 3. add CrifanLibHttp.swift > 4. add CrifanLibHttpDemo.swift" [master 858a954] 1. add isAllDigitOrLetter 2. add saveLastLogined, lastIsLogined 3. add CrifanLibHttp.swift 4. add CrifanLibHttpDemo.swift 4 files changed, 384 insertions(+), 2 deletions(-) create mode 100644 swift/CrifanLibHttp.swift create mode 100644 swift/CrifanLibHttpDemo.swift </code>
即可。
转载请注明:在路上 » [已解决]git commit -m加备注时如何换行