Not specific to Swift, but good to know for working with GitHub.
Create a new repository on Github. Give it the same name as the project you're working on in Xcode.
When you create a new repository, it gives you a link...
git@github.com:YOUR_GITHUB_USERNAME/FILENAME.git
Create an Xcode project with the same name. In your terminal, us $ cd to navigate into that folder. You can check that you're in it with $ pwd. Once you know you're in the right folder use $ git init . to add a file. Then add the link from Github.
$ git remote add origin git@github.com:YOUR_GITHUB_USERNAME/github_checkpoint.git
Now verify that it set the remote server correctly...
$ git remote -v
This should show you a (fetch) and (push) with the origin.
Now you can push and pull away!
Create a new repository on Github. Give it the same name as the project you're working on in Xcode.
When you create a new repository, it gives you a link...
git@github.com:YOUR_GITHUB_USERNAME/FILENAME.git
Create an Xcode project with the same name. In your terminal, us $ cd to navigate into that folder. You can check that you're in it with $ pwd. Once you know you're in the right folder use $ git init . to add a file. Then add the link from Github.
$ git remote add origin git@github.com:YOUR_GITHUB_USERNAME/github_checkpoint.git
Now verify that it set the remote server correctly...
$ git remote -v
This should show you a (fetch) and (push) with the origin.
Now you can push and pull away!