gitmodules Delete the relevant section from. So this: git fetch -all -tags git reset -hard tags/v2.11.0 is a little weird, 1 but not entirely crazy. The tags/v2.11.0 tag in the superproject is therefore a name forthat is, represents the number, or hash ID ofa particular commit in the superproject. When you are inside the submodule, you can treat it just like a normal repo, and when you are in the parent repository, you can "add" to change the current commit pointer.Ä«ut the traditional downside is that you either have to have your users know git submodule commands, so they can init and update the repo, or they have to add -recursive when they initially clone your repo. To remove a submodule you need to: Delete the relevant section from the. 2 Answers Sorted by: 1 A tag is a name for a commit. The git submodule command can do some of this for you: git submodule update tells your superproject Git to run: (cd & git checkout ) for each submodule according to the hash ID currently stored in the index in the superproject.The relative path to the repo is important it allows you to keep the same access method (ssh or https) as the parent repository. Asked 7 months ago Modified 2 months ago Viewed 1k times 3 I have a git remote repository on a network drive an try to clone this repository to a Mac Computer with: git clone -rescurse-submodules /Volumes/path/to/repository. ![]() If you want to add a Git repository on the same service (GitHub, GitLab, BitBucket, etc), the following is the correct Git command to set that up as a submodule in the extern directory: gitbook $ git submodule add. So you deleted first the submodule directory and later even the submodule repo (object store). git stash pop // manually resolve conflicts and save the files (NB: dont use git add ) git restore -staged.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |