I'm trying to add a README.md file in my Xcode Project, and push it to GitHub. How can I do it? Creating a file inside the root of the project doesn't work because - I think - Xcode doesn't see it.
I just solved the same problem, so allow me to share my finding.
Add Files to <Your Project>...
This is how I did it -
1 - Create a new file by ctrl+click in root folder of the project within xCode.
2 - Once done choose file type other from left pan and then pick empty file. Rename it to Readme.md
while saving the file.
3 - The Readme.md
file should be created in the root folder as displayed in above screen-shot.
That is it that should do. When you push the code to the repository your Readme.md
file should be displayed properly.
B.R
There are basically two questions here. The first is how to add a README.md file and push it to GitHub. touch README.md; git add README.md; git commit -m "added README.md"; git push origin
The second is one of file visibility. I think what you're running into here is that Xcode keeps a file manifest record of sorts for its projects. Try reading through this question: Xcode does not pick up new class files in SVN
Are you adding the file within Xcode or the terminal/finder?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With