Thursday 15 July 2010

How to make "git push" include tags within a branch? -


When someone brings a branch, there is a tag in git fetch which indicates in the branch :

When Ringspack stores results obtained in remote-tracking branches, then the tags indicated on these brands are automatically followed. This is done by fitting from the given remote, and if there are objects in the repository that are indicated by remote tags that are not yet, then get those missing tags. If there are tags on the other end which are interested in branches, then you will not get them.

Is there a way to create git push the same way? The Man page tells you how to push any tag (default), all tags ( - tags ), or those you name on the command line. This does not give way to push all the people pointing at the branch.

You can try, with (May 2013):

 < Code> git push --follow-tags   

new " - follow-up tag

This All will not push "option" to push git push "related annotated tags.

As mentioned in "", it is not only for light tags, but only concerned.

git tag 1.0 (lightweight) will not be pushed with - follow-up tags , this git push -tags Will be with.

View this:

With Git 2.4.1+ (Q2 2015), this option can be set as the default.

View this:

Add new configuration bits and then push.followTags configuration which - follow tag Changes by default. The document will include the following:

  push.followTags ::   

if set to true By default, the ' - follow-tags ' option will default to this configuration as ' - no-follow-tag '

You can override this setting by specifying, enable this setting globally, you git config --global push.followTags true . It can also be specified per repository-basis.

No comments:

Post a Comment