![]() ![]() If you are aware of other ways of doing this, please share. This will set the HEAD of your new_branch to point to commit_sha. cd submodule git checkout -b NEWBRANCHNAME COMMITID. ![]() Hence enter the dependency root by using cd submodule and use any git command. Clone The Repo And Checkout The Specific Commit Into A Branch git submodules are repositories inside a repository, hence it has the same behavior as any other git repository. ![]() You have one remote repository, and you point to a single commit. If you have a bunch of forks of a module, git submodules don't care. Submodules do not track git refs or branches and are not automatically updated when the host repository is updated. Submodules are very static and only track specific commits. If you add commits to a submodule, the parent project won't know. A git submodule is a record within a host git repository that points to a specific commit in another external repository. If you have a bunch of forks of a module, git submodules don't care. You are tracking specific commits with git submodules - not branches, not references, a single commit. If you add commits to a submodule, the parent project won't know. This will set the HEAD of your master to point to commit_sha. You are tracking specific commits with git submodules - not branches, not references, a single commit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |