orbitory
orbitory

Reputation: 1120

How do I tag my git repository using the GitHub Mac application?

I pretty new to GitHub and personally did not have time to learn too much command line. I prefer using the GitHub Mac app for my personal projects and I was curios if I can add tags with it.

Basically I just want to tag my projects v0.1 and so on. I'm not even sure this is the best way to do it.

Upvotes: 25

Views: 13014

Answers (3)

Alexandre Morgaut
Alexandre Morgaut

Reputation: 1281

Unfortunately, Github Client for Mac still doesn't handle tags. Neither to create them or nor to retrieve them

The Github website on its side propose not only to retrieve tagged commits, but also show them as releases and propose automaticly generated zip and tar.gz bundles of the related source code.

see:

The good news is that tag are pulled to you local repository when doing a "sync" or a "pull" from Github Client for Mac

As @blahdiblah said, you'll have to go through command lines to manage tags locally The "official" documentation regarding tag manipulations in command line is there:

Usage is very simple:

  • git tag list tags
  • git tag -a v1.4 -m 'my version 1.4' create a tag with a description
  • git show v1.4 show informations about a tag
  • git push origin --tags push last commits and the tags

Upvotes: 5

Jay Versluis
Jay Versluis

Reputation: 2072

To create a tag manually via the command line:

  • open Terminal and navigate to your repository (either via cd or just drag in the folder from Finder)
  • use the following commands:
  • git remote (displays the name of your remote, for example YourRemote)
  • git tag -a v1.2 -m 'tagging Version 1.2' (creates tag v1.2 from current branch)
  • git push YourRemote v1.2 (pushes the tag you've created to YourRemote)

http://pinkstone.co.uk/how-to-tag-a-release-in-git/

Upvotes: 3

blahdiblah
blahdiblah

Reputation: 34031

From VonC's answer to the same question asked on SuperUser:

Both in their announcement and in the help section, this (tag) doesn't seem to be available (at the time of the writing of this answer).

That means GitHub for Mac doesn't manage yet the tags namespace (refs/tags), and that you need to tag manually, and then git push --tags to GitHub also manually.

Though that was a year ago, there's still nothing to indicate that tags are supported. There's still no mention in the help section, subsequent blog posts about it don't mention tags, nor do the release notes (though they only cover relatively recent versions).

Upvotes: 21

Related Questions