Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tag a commit in Xcode

Tags:

git

xcode6

tags

Is there any way how to create a tag for specific commit in Xcode? Is there any support for git tags? I can see just branch stuff (new, switch, merge) under Source Control.

like image 705
Viktor Kucera Avatar asked Sep 29 '14 08:09

Viktor Kucera


People also ask

Can you tag a commit?

In order to create a Git tag for a specific commit, use the “git tag” command with the tag name and the commit SHA for the tag to be created. If you want to create an annotated tag for a specific commit, you can use the “-a” and “-m” options we described in the previous section.

How do I commit in Xcode?

The shortcut to commit in Xcode is “option + command + c”. This will bring up the window you see below. This powerful tool for documenting your commits will show three main things. First, you can see all the changed files on the Navigator.

What does it mean to tag a commit?

These tags use a name to refer to a specific commit. Lightweight tags are private to a repository. These are just pointers to a specific commit. In other words, they only store the hash of the commit they refer to and do not store any information.

How to associate a Git tag with a specific commit ID?

Run the git tag new-tag-name commit-id command, where new-tag-name is the new Git tag's name and commit-id is the ID of the commit to associate with the Git tag. For example, the following command creates a Git tag named beta and associates it with the commit ID dc082f9a...af873b88 :

How to tag a commit with a release name?

We should start by tagging the commit that is ten commits behind origin/stable-2.3 and is not a merge. In order to find that commit, we will use the git log command. Step 1 : Find the commit as follows: Step 2 : Now that we have found the 60d538f commit, we should make it a lightweight tag. Use the git tag command to give a meaningful release name:

How to find Commit 60d538f in Git?

1 Find the commit as follows: git checkout stable- 2. 3 git log - 11 --no-merges --oneline 2 Now that we have found the 60d538f commit, we should make it a lightweight tag. ... 3 To see whether the tag is available, use the git tag command: git tag -l "v2.3.0.2*" More items...

How to create a tag in Git?

A tag can be created using the git tag command. The syntax for using this command is − The following example creates a tag “RC1.0” and associates it with a commit having the hash “c81c9ab” Let us verify this by executing the following commands −


2 Answers

Three years after, Xcode 9 has been enhanced by tagging feature. Just go to Source Control navigator and tag any commit via context menu opened by rightclicking that specific commit.

enter image description here

like image 104
Viktor Kucera Avatar answered Sep 21 '22 13:09

Viktor Kucera


This is not supported in Xcode6. Visit https://www.youtube.com/watch?v=pEe1Ul0bHko or show this plugin https://github.com/wczekalski/WCGitTagsPlugin

like image 21
noodleone Avatar answered Sep 25 '22 13:09

noodleone