Re:Mastering Git submodules
by dukerutledge on Friday February 20, 2015 @12:50PM
(#9081653)
If you are using submodules for pinning external resources to a specific hash then you probably won't have problems. If you are using them to manage multiple internal resources with varying levels of coupling...you will.
I'd guess you aren't working on a team, and don't check out commits before your submodules were added?
If you don't roll forward and back in time (bisect), and you don't have merge conflicts, and you can easily resolve abandoned commits on submodules (i.e. you don't have to wait for Bangalore to wake up and push their changes) then, yes, you probably won't have many issues.
Same here on both counts - have been using ST as my main git interface since 2011 (I still use command line for git init, reflog, and checking stuff remotely on VMs, and git bfg if someone committed a credential), and using submodules across a wide variety of projects. I've never had a problem, and only avoid subtrees to be nice to my colleagues that have had problems
which I guess illustrates how unreliable anecdotal evidence really is.
Or, maybe your use case skirts around the problems?
Re:Mastering Git submodules
by edvinbesic on Friday February 20, 2015 @11:10AM
(#9080987)
I think you're both saying the same thing.
I've had detached head issues, but nothing that didn't take a minute or two to solve.
It might be that I'm using SourceTree exclusively, so maybe SourceTree is hiding away the painful bits or something.