25

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.

Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
orbitory
  • 1,090
  • 5
  • 16
  • 40
  • The mac git UI app GitX (specifically the rowanj fork, http://rowanj.github.io/gitx/ ) supports tagging and pushing tags. It's not as pretty as GitHub app but arguably easier to use. – Simon Woodside Jan 28 '14 at 22:39

3 Answers3

21

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).

Community
  • 1
  • 1
blahdiblah
  • 33,069
  • 21
  • 98
  • 152
  • 5
    I don't know when they started, but the actual github.com website now supports tagging (check the Releases section on a repo page). So, you can push your commit and then tag it on github itself. – maackle Jul 03 '13 at 18:32
  • Does it support tags yet? Couldn't find it in the client – 1.21 gigawatts May 03 '19 at 02:12
5

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
Alexandre Morgaut
  • 1,263
  • 13
  • 14
3

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/

Jay Versluis
  • 2,062
  • 1
  • 19
  • 18