I'm currently switching over to using mono repos, since it fits my workflow better. However, I still want to be able to deploy/use parts of the now huge project separately. That is why I came across splitsh-lite (https://github.com/splitsh/lite), a replacement for
-- -- MyLibrary1/
-- -- MyLibrary2/
git push firstname.lastname@example.org:my-project/my-repo split/library1:master
error: unable to push to unqualified destination: master
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
git push ../library1 split/library1:master
So, apparently the above commands should be working as intended. The issue however is, that Git is somehow not able to resolve "master" into an actual reference. The problem is solved by specifying the exact reference:
git push some-repo-path split/library1:refs/heads/master
Me and some guy from #git (freenode, thanks for helping, again!) couldn't figure out why Git couldn't do it, though, which is a little unsatisfying.