分支名称中的哪些字符是非法的? [英] Which characters are illegal within a branch name?
本文介绍了分支名称中的哪些字符是非法的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
分支名称不能:
- 有一个以点
开头的路径组件。
- 双点
..
- 以斜线结尾
/
- 以
.lock结尾
- 包含ASCII控制字符,代字符<
〜,caret ^
,冒号:
,空格 - 包含空格
感谢 JakubNarębski:手册页 for git check-ref-format
有更多细节。
Which characters are illegal within a branch name?
解决方案
A branch name cannot:
- Have a path component that begins with a dot
.
- Have a double dot
..
- End with a slash
/
- End with
.lock
- Contain an ASCII control character, tilde
~
, caret^
, colon:
, space, or backslash
\
- Contain whitespace
Thanks to Jakub Narębski: the man page for git check-ref-format
has more details.
这篇关于分支名称中的哪些字符是非法的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文