How to check out specific version of a submodule using git submodule? -


how go adding git submodule specific tag or commit?

submodule repositories stay in detached head state pointing specific commit. changing commit involves checking out different tag or commit adding change parent repository.

$ cd submodule $ git checkout v2.0 previous head position 5c1277e... bumped version 2.0.5 head @ f0a0036... version 2.0 

git-status on parent repository report dirty tree:

# on branch dev [...] # #   modified:   submodule (new commits) 

add submodule directory , commit store new pointer.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -