'Is it possible to include tags with git format-patch

git format-patch does not appear to include tags, either lightweight or annotated, in the final patch file.

Is that the case? If so, what do folks do to synchronize repositories that include tags using patch files?

git


Solution 1:[1]

A tag is simply nothing that has anything to do with a patch. It's supposed to describe a state of your tree, not a difference.

So, no, that's neither possible nor sensible.

If so, what do folks do to synchronize repositories that include tags using patch files?

You can't synchronize tags via email. The format-patch / send-email procedure is meant for change communication, not for release management, version tracking etc.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Marcus Müller