-3

I found several posts on stackoverflow with this same question, but the most recent answer from all those posts is dated back in July 2019 on this post.

Is that answer still a good answer and is complete and up to date?

I'm specifically referring to this answer by Vikram Sinha I wrote below. That was the most recent answer given of all the answers I found on stackoverflow.

Note:Specially for Xcode 11

CD to project directory using terminal

git init

git add .

git commit -m "Initial commit"

After this restart the Xcode and choose Source >Control Navigator and then select the master and >right click then choose option "Create Remote"

daniel
  • 1,446
  • 3
  • 29
  • 65
  • 2
    Did you try it? – matt Apr 23 '22 at 01:48
  • @matt No. I've never used git before. If I tried it I wouldn't be able to tell whether it worked or not. I would have to use it over time to see if I ever run into things that may don't seem right, but then I wouldn't recognize that it doesn't seem right. It seems it would be difficult to recognize an error if it should occur. I may may not be such a bad thing to just try it, but I want to ensure I have the best information I can get. – daniel Apr 23 '22 at 09:48

1 Answers1

1

In Xcode choose Source Control > New Git Repositories to create a git repository for an existing Xcode project.

Swift Dev Journal
  • 19,282
  • 4
  • 56
  • 66