I am using Xcode version 12.5 and want to push a demo app to GitHub.
Though I have used GitHub to upload iOS apps in the past; it was a while ago and I needed a mind refresher so I followed these tutorials: How To Use GitHub with Xcode 11 and How to upload Xcode project to GitHub (Working with Git), hoping it would be OK for my use case.
Also taking a look here to review my GitHub knowledge.
But when I try to push my project from Xcode I keep getting this message:
The given URL 'git+ssh://git@github.com:me/MyRepo.git' is invalid.
Provide a valid URL and try again.
although my repository is created. What am I missing?
....... Some more information follows.
Here is what happens when I try a pull:
MacBook-Air$ git pull origin master
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint:
hint: git config pull.rebase false # merge (the default strategy)
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: couldn't find remote ref master
MacBook-Air$