Trying to use Github for the first time with xCode giving me hard time.
I followed many tutorials but nothing is working for me.
p.s. the first time i did the connection to the remote server i got a popup to enter user and password, now not getting that any more, so i am getting that the connection is not the problem, i can see (or think i can see) the remote repo
Any one got an idea?
Push:

Pull:

I use the command line most of the time. I can suggest you a better way to do this for your purpose.
Follow below steps :
Open terminal.
Type following command
git clone --recursive https://github.com/EXAMPLE_PROJECT/EXAMPLE.git
Note:
If there is no github account details present in keychain terminal will ask to enter.
If you are using more than one user account in github, then you may have to delete the github account details from key chain. I am not sure how to setup for multiple github account.
OK, fixed the problem!
Notice when you add README or gitignore files when creating a git repo, nothing that i did could push or pull from and to the local copy.
eventually i deleted the Github repo and created a clean repo with no files in it.
Then did the steps from the main repo page and every things worked just fine.
I thing the issue was that i had deferent files in both the Github repo and the local git repo (the local one has the Xcode project files) and it gave me error after error for many things, starting from clean Github repo and getting the gitignore file in advance and adding it to the local project did the trick for me.
10x and i hope that helped
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