How to tag a Git repository with Xcode 4

It might be silly, but I just can't figure it out:

I added git support to my project after it was created, closing Xcode and using the terminal:

$ git init $ git commit -a -m "Initial commit" 

When I open Xcode again, it discovers that my local repository is just fine, except that I just cannot create a way to create a tag. I can create a branch, but not a tag. How do you create it from Xcode?

EDIT: I did what @ edc1591 suggested, and even created a project with git support from scratch, and I still don't understand how to create a tag. There is only a subfolder Branch and the ability to add one (branch), but nothing about the tags ...

+6
source share
2 answers

Xcode 4 does not have the ability to do a lot of SCM stuff, but it does the job of doing most things through the command line (even while it is running). Therefore, if you want to make a tag, make sure that you want the tags to be fixed, and do it like in the command line:

 git tag -a -m "Mostly works" project_v0.2 

On the plus side, where Xcode 4 does SCM things, it does them pretty well. β€œGreat view” and guilt look are very useful, as are status tags.

+13
source

After git init make sure you do git add . (from the project directory). I am not sure if this will fix the problem. But based on what you have, you just create an empty git repo

+1
source

Source: https://habr.com/ru/post/885524/


All Articles