开发者

How to tag a Git repo from Xcode 4

开发者 https://www.devze.com 2023-02-22 21:30 出处:网络
It might be silly, but i just can\'t figure it out: i added git support for my project after creating it, by closing Xcode and, from terminal:

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

i added git support for my project after creating it, by closing Xcode and, from terminal:

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

When i reopen Xcode, it detects my local repository just fine, except for the fact that i just can't get how to create a tag. I can create a branch, but not a tag. How do you create one from Xcode?

EDIT: Did what @edc1591 suggested, and even created a project with Git support fro开发者_StackOverflow中文版m scratch and i still don't see how to create a tag. There's only a Branch subfolder and the possibility to add one (branch), but nothing about tags...


Xcode 4 doesn't have a way to do a lot of SCM things, but it does cope with you doing most things via the command line (even while it is running). So if you want to make a tag make sure what you want tagged is committed and then do it like you would from 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. The "diff view" and blame view are both very useful, as are the status tags.


Make sure you do git add . (from the project directory) after git init. I'm not sure if this will fix the problem though. But based off what you have, you're just making an empty git repo

0

精彩评论

暂无评论...
验证码 换一张
取 消