Reputation: 1878
I´m very new in GitHub (since yesterday ;-)) and want to add files & folders
In my Xcode-Project i have this Folder-/File-Structure:
entries with the folder-icon as CodeDataTest, Classes, Model,... are Folders, the rest are files. Now i want to add these structure to my new GitHub-Repository as shown.
I googled a lot but found no solution. :-(
Can you help me?
Thanks in advance!
Upvotes: 1
Views: 1619
Reputation: 1878
I got it after wasting a lot of time...
In the accepted answer of Em L everything was correct, but me idiot added at github.com a new repository with adding a new README.md and this caused the error
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
after a lot of tries, i added a new repository without a new README.md and everything was ok, but i don´t know the reason. :-( Till yesterday, when on a new try i finally noticed it...
So my solution in addition to Em L answer is
maybe it will help someone...
Upvotes: 0
Reputation: 328
1.Login GitHub, then click Start a Project -> Create a new repository
, input your name CoreDataTest
2.Run git init
in your local CoreDataTest directory.
3.Run the following command:
git remote add origin [email protected]:xxxx/CoreDataTest.git
4.Finally, push local repository to remote
git push -u origin master
Upvotes: 1