- Quit Xcode (not sure if this is necessary but I do it just in case)
- Run Terminal
- Get into the project folder directory
- find .
- Find the file that says "UserInterfaceState.xcuserstate" and copy the entire filename up to the ./
- echo "paste the UserInterfaceState.xcuserstate file here" >.gitignore
- cat .gitignore
- git init
- git add .
- git commit -m "You can type a comment here like now under source control"
You now have a repository and your project is under source control