Search code examples
gitgit-submodules

Tracking Local Edits of Git Submodule


I'm starting this this really isn't possible with Git submodules after head scratching and searching but here it goes:

I've pulled the Ghost (node.js blog platform) repo rendered by a cloud provider.

It resides at C:/sites/blog/ and pushes to my cloud server

I've made a submodule of a theme I found on a github repo. It resides at C:/sites/blog/content/themes/SubmoduleTheme

I've tried to figure out how to customize the theme while pushing from the blog's root directory to the cloud server.

It seems submodules require any commits to be pushed to a different repo than the "super" repo. Is this the case--that localized changes to submodule can't be included in the main repo to the cloud, are there any ~relatively simple~ Git alternatives?


Solution

  • It seems subtrees are the functionality I want and implemented. The following does a good job of explaining how-to:

    http://blogs.atlassian.com/2013/05/alternatives-to-git-submodule-git-subtree/