I would like to upload my
Test.playground file to Github. Thought I would add a
.gitignore file so that
xcuserdata changes are not committed.
- What is preferred way to create a git file ? (I tried doing it through Xcode but it states that "All projects are already under source control.")
.gitignoreeven recommended or am I missing the bigger picture ?
Note: When I create a git through command line as stated below and make any changes to the
contents.xcplayground (main page) and save the
.gitignore file gets deleted.
Attempt made so far:
cd Test.playground git init <create a .gitignore file>
Contents of my .gitignore file: