I have a submodule and I plan to merge it into my main repo, but I have several tags that I want to keep. If I merge my submodule into my repo, would the tags that reference the submodule be messed up?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Tags don’t reference your submodule. They reference a commit that in it has a
.gitmodulesfile that has information about your submodule. Your tags will not be affected. To use a tag after you merge your submodule into your main repo, you can edit your config so the submodule’s url is the path to the repo itself. Now checking out a tag and doing asubmodule update(don’t do--initor it will clobber the just adjusted config) will make the tag usable.