我想通過使用VIM添加一個Git提交,如圖片。 第二行,我想添加一個提交文本「#2355修復這個問題的一個bug」,但是vim認爲這是一個註釋,vim會忽略這一行,那麼我該怎麼做。如何和'#'在VIM但不使用評論
0
A
回答
2
它不VIM,它的GIT中:根據文檔:
A '#' 或 ';'字符表示評論。
需要注意的是,你可以每庫更改此:
core.CommentChar Commands such as commit and tag that lets you edit messages consider a line that begins with this character commented, and removes them after the editor returns (default #).
3
線開始以 '#' 將被忽略,和一個空的消息,中止犯。
只是不啓動你的提交信息與#
fix bug #2355 of this issues
+0
我用「git config core.commentchar'*'」解決了問題。如果開始提交#會自動將提交與issuse相關聯。 – jimbo
相關問題
- 1. 如何使vim縮寫在評論區域中不起作用?
- 2. 使用VIM在CSS中刪除評論
- 3. 如何使用評論框評論框使用評論系統
- 4. Vim單詞評論
- 5. 評論(#)走在Vim的
- 6. 如何使回覆評論引用評論的ID在論壇
- 7. 如何使用Django的評論框架評論評論
- 8. 如何在Vim中同時添加代碼和評論?
- 9. 如何使用vim圍繞一行描述發表評論?
- 10. fb:comments - 如何評論評論
- 11. VIM評論標籤錯誤?
- 12. vim插件評論塊
- 13. vim:添加評論宏
- 14. 如何使用nokogiri去除HTML空白和評論和javascript評論?
- 15. Facebook的評論|我如何在發佈前評論評論
- 16. 評論和子評論
- 17. 如何使用YouTube API禁用評論和評分asp.net
- 18. 使用appleDoc和/// TODO:評論
- 19. 禁用vim中的摺疊評論
- 20. TextMate評論在Vim中的橫幅
- 21. 在Vim中評論C++代碼
- 22. 我該如何讓Vim不打破DocBlock評論?
- 23. 如何在yii中爲每個論壇帖子添加評論,使用bbii論壇模塊和評論模塊
- 24. 如何在Matlab中評論每一行而不進行評論?
- 25. 評論Vim中的比賽 - 獨立評論的領導者?
- 26. 如何使用YouTube .NET API投票/評論評論?
- 27. 如何使用Facebook Graph API來評論評論?
- 28. Facebook的評論插件 - 如何刪除選項「評論使用」
- 29. 如何使用C#查詢Facebook評論插件評論信息?
- 30. Facebook的圖形API 2.0可以喜歡/評論,但不評論
你可以改變註釋字符'core.commentChar',這裏http://stackoverflow.com/questions/2788092/看看啓動一個git-commit-message-with-a-hashmark和這裏http://stackoverflow.com/questions/22936252/escape-comment-character-in-git-commit-message –
謝謝@Ôrel,我關注你提示,已解決 – jimbo