About Xcode and GitHub

So I started a project in Xcode but without GitHub.

Now I have prepared Xcode for GitHub and kind of made it work.

I have also made a folder where I have cloned my project from GitHub.

So is there any way to connect Xcode and the new folder. If I save my project it doesn't know about my new folder I presume:

I could continue to use GitHub via Xcode but I'm afraid I will forget about commands in Git if I only use Xcode. If I should work on another project without Git.

Go into more detail on how you prepared Xcode for GitHub.

What you normally do to put an Xcode project on GitHub is to create a git repository for your project by choosing Source Control > New Git Repository and creating an external branch for GitHub from Xcode's source control navigator, which you can access by pressing Cmd-2.

When you put your project on GitHub like I described in the previous paragraph, you don't have to clone the project on GitHub.

It sounds like you have two versions of your project locally: the one you originally created and the one you cloned from GitHub. You have two options:

  1. Work with the project you cloned from GitHub and stop using the one you originally created.
  2. Place your original project on GitHub and stop using the cloned version.

The following article shows how to put a local Xcode project on GitHub:

swiftdevjournal.com/putting-your-xcode-project-on-github-bitbucket-or-gitlab/

About Xcode and GitHub
 
 
Q