Reputation: 871
I have a repo B which "branched" from another some time ago. However, I still need to apply some commits from its "father" repo A from time to time. So, in repo B I did:
git remote add repoA [email protected]
git fetch repoA
Now, in repo B I can, for example, cherry pick
some of the things that keep on happening on repo A...
However, when I do git push --tags
he tries to push to repo B all of its tags plus the tags from repo A.
Upvotes: 2
Views: 286
Reputation: 18109
Regarding question 2, my opinion is that it is more intuitive and straight forward to keep the legacy code on a branch. Generally speaking, different systems are kept in different repos and an old release track that is only maintained to a certain extent is kept on a branch in the one repo containing your system. But again, that is my opinion and not a fact :)
Upvotes: 0
Reputation: 1323583
You can try (git 1.8.3+, May 2013):
git push --follow-tags
That should push only the commits and tags from your current branch in one command (if your push policy is set to simple
)
Upvotes: 1