![]() ![]() Git submodule add -b master src/modules/trackchanges For example, we’ve created a trackchanges repository (a new feature coming in Komodo 9) that we’re linking into the main Komodo Edit repository as a submodule: To create a submodule, you create a new repository to host your module code and then link that into the main repository project. One special thing to note about submodules, is that by default they are first initialized into a detached head state (like an anonymous git branch), so if you want to work on this submodule code later, you’ll first need to update the information (checkout) to be able to push your changes correctly. You can set the submodule to track a particular branch (requires git 1.8.2+), which is what we are doing with Komodo, or you can reference a particular repository commit (the later requires updating the main repository whenever you want to pull in new changes from the module – i.e. There is a special git submodule command included with git, and this command takes various arguments in order to add/update/delete your submodules. Separate git repository in its own right. There’s a lot of out-of-date information on the web, so pay attention to theĭate of the articles you read, as git has been changing (getting better) all theĪ submodule in a git repository is like a sub-directory which is really a Repositories, but there are still a few things (quirks) you should be aware of. Git submodules work really well for splitting out code bases into separate Powerful IDE with support for multiple languages, including Python, Interesting things about submodules that we’d like to share. Since using Git submodules in our Komodo code base, we’ve learned some
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |