问题
Here are the steps:
- Added a repo to beanstalkapp.
- Added the repo from Preferences > Accounts in Xcode 5.
- Created a new project with local git.
- Selected Source Control > Push...
Xcode shows me no remotes found. What am I doing wrong?
回答1:
Xcode probably doesn't know that the remote belongs to your project. See if this works:
Open your project in Xcode
Head over to Source Control - Working Copies (your project) - Configure - Remotes. Can you see your remote there? If not, hit the plus sign at the bottom left and add your remote.
If your project is showing, and you've verified the path, try Source Control - Push. You should see your remote(s) and a drop-down of branches.
If instead you see "No Remotes", try rebooting Xcode.
回答2:
maybe it's late, but might help someone else. So,
Goto Xcode -> Preferences under Xcode menu
Select Accounts
Press "+" icon on the left-bottom corner, then press "Add Repository..."
Add repository location in the text box, Click Next.
Give password if it ask.
Now try to push again
hope this will work.
回答3:
1 - go to source control tab (next to project navigator)
2 - right click on the master folder
3 - create remote on github...
来源:https://stackoverflow.com/questions/19791230/xcode-5-no-remotes-found