If you hate
git submodule, then you may want to give
git subtree a try.
Let's say you have a git repository
init'd with at least one commit.
You can add another repository to this respository like this:
In other words
git subtree add --prefix .vimrepo https://github.com/newfivefour/vimrc.git master --squash
This will clone
https://github.com/newfivefour/vimrc.git into the directory
If you want to pull in any new commits to the subtree from the remote, issue the same command as above, replacing
git subtree pull --prefix .vimrepo https://github.com/newfivefour/vimrc.git master --squash
If you make a change to anything in
.vimrepo the commit will be stored in the host repository and its logs.
That is the biggest change from submodules.
If you now want to update the subtree repository with that commit, you must run the came command as above, excluding
--squash and replacing
git subtree push --prefix .vimrepo https://github.com/newfivefour/vimrc.git master
I've only just starting playing, but my main problems so far:
Other than that, they're looking nicer than submodules.