开发者

GIT submodule fatal: cannot describe

开发者 https://www.devze.com 2022-12-12 16:57 出处:网络
I am trying to add a git submodule to my project, but git keep telling me $ git submodule fatal: cannot describe \'dd650e8bb4762a8a7f69a6412b4765c9bb108778\'

I am trying to add a git submodule to my project, but git keep telling me $ git submodule fatal: cannot describe 'dd650e8bb4762a8a7f69a6412b4765c9bb108778'

What means "fatal: cannot describe" and how can i avoid th开发者_StackOverflow社区is?


This is certainly bug in Git (please send description of how it does occur, and the git version to git mailing list), but you can avoid this git describe error by creating annotated tag pointing somewhere to the commit before adding submodule (with git tag -s or git tag -a). For example to some released version.


git describe will throw an error 'cannot describe' if it cannot find an annotated tag and you do not use the --tags switch. See man git-describe and man git-tag for more info on this.

0

精彩评论

暂无评论...
验证码 换一张
取 消