-
I have a repo with some submodules. I check it out with:
However, after that, I want to checkout a specific ref for one of the submodules. How would I do that? |
Beta Was this translation helpful? Give feedback.
Answered by
aormsby
Oct 3, 2021
Replies: 1 comment 1 reply
-
Something like this should do the trick. git fetch --depth=1 origin "refs/heads/<your ref name>"
git checkout <your ref name> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
arihannu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something like this should do the trick.