loop
loop

Reputation: 3590

I put my repo on github but all my tags are gone

I put my repo on github but when I go to tags they are not there. I expect to see tags like '1.1', '1.0', etc that I used to mark my releases. Is it a GitHub issue or does git normally do that? All my code and history is there. Thanks

Upvotes: 1

Views: 89

Answers (1)

VonC
VonC

Reputation: 1323653

You need to explicitly push your tags to the remote (GitHub) repo

git push --tags origin

From git push man page:

--tags

All refs under refs/tags are pushed, in addition to refspecs explicitly listed on the command line.

See also "tagging" or the GitHub help on pushing:

Pushing tags

By default, push will only send the ref you specify.

  • To push a single tag you can simply use git push REMOTENAME TAGNAME.
  • To push all tags while pushing another branch, you can use git push REMOTENAME BRANCHNAME --tags.

Upvotes: 2

Related Questions