Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 499
orbitory Avatar asked Feb 12 '12 02:02

orbitory


People also ask

How do I tag a repository on GitHub?

In order to create a new tag, you have to use the “git tag” command and specify the tag name that you want to create. As an example, let's say that you want to create a new tag on the latest commit of your master branch. To achieve that, execute the “git tag” command and specify the tagname.

How do I add a tag to GitHub desktop?

Creating a tag Click History. Right-click the commit and click Create Tag.... Type the name of the tag. Click Create Tag.


2 Answers

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

like image 92
blahdiblah Avatar answered Oct 06 '22 19:10

blahdiblah


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:

  • https://help.github.com/articles/working-with-tags
  • https://help.github.com/articles/about-releases
  • https://github.com/blog/1547-release-your-software
  • https://help.github.com/articles/creating-releases

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:

  • http://git-scm.com/book/en/Git-Basics-Tagging

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
like image 38
Alexandre Morgaut Avatar answered Oct 06 '22 20:10

Alexandre Morgaut