New Branch from Repo but Change the Submodules -
i have git repo contains 2 submodules. want create new branch of main app , have submodules point different "branch." quote branch understand submodules don't point branches, rather commit. don't want branch option don't want latest commit subs. can't find in documentation. 3
you create new branch in main parent repo , then:
- go in each submodules
- checkout each right branch want
- go in parent repo , add , commit: record gitlink (special entry in index) of 2 submodules new sha1.
since have not configured the submodules follow branch, stay @ sha1 checked out each of them.
Comments
Post a Comment