RE: Git Tags
- From
Randall S. Becker <rsbecker@nexbridge.com>
- Date
- Nov 29, 2018, 13:40 UTC
- Message-ID
- <001901d487e9$0f9e9d90$2edbd8b0$@nexbridge.com>
- In-Reply-To
- <CABUeae_4yxtxFmi14+OivX-wFQq4Hd5uEV3_WhRMsMHbvSxy7w@mail.gmail.com>
On November 29, 2018 6:56, Mateusz Loskot wrote:
Show 19 quoted lines
> On Thu, 29 Nov 2018 at 12:50, Stefanie Leisestreichler > <stefanie.leisestreichler@peter-speer.de> wrote: > > > > git tag -a 0.9.0 > > git push origin master > > > > In my local repository, when I run "git tag" it is showing me "0.9.0". > > > > Then I did (on box B) > > git clone ssh://user@host:/path/project.git cd project git tag > > > > Now git tag is showing nothing. > > > > Why is the tag only available in my local repository? > > >From https://git-scm.com/book/en/v2/Git-Basics-Tagging > "By default, the git push command doesn’t transfer tags to remote servers. > You will have to explicitly push tags to a shared server after you have created > them."
git push --tags
and
git fetch --tags
to be symmetrical
Cheers, Randall
-- Brief whoami: NonStop developer since approximately 211288444200000000 UNIX developer since approximately 421664400 -- In my real life, I talk too much.