3 ms·
Yeah, I realized post-facto that --all and --tags doesn't work. Alternatively, you can list your tags with things to push, like git push origin master my-ta
by aggieben 18y ago
Yeah, I realized post-facto that --all and --tags doesn't work. Alternatively, you can list your tags with things to push, like
git push origin master my-tag ...
That might also work with --all. If it does, you could get away with:
git push --all origin my-tag
As for the rest...I'm not sure what your best way forward is. One way might be simply to don't delete branches. They'll clutter the list of branches, but so what? Just ignore them if you don't use them.
The 'git remote prune' way is probably best. Run that, and then check for local branches that aren't tracking a remote. That's scriptable.
I don't think there's a simple and elegant answer here, because what you're doing basically turns Git into subversion. That's pretty much unavoidable when one is doing what you're doing.
You could be more "distributed" if you only worked on specific features or modules (or whatever) at specific locations. Then you could just merge when necessary instead of always having to keep your branches in sync :-)