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.
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.
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.
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.
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 :
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:
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...
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 −
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.
This is not supported in Xcode6. Visit https://www.youtube.com/watch?v=pEe1Ul0bHko or show this plugin https://github.com/wczekalski/WCGitTagsPlugin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With