Xcode 4.4 - no remotes found

前端 未结 8 2184
失恋的感觉
失恋的感觉 2021-01-18 11:29

Post-installation of 10.8 and Xcode 4.4 when I try to push to a remote using the Xcode integration Xcode is telling me \'no remotes found\'. I am still able to push successf

8条回答
  •  情深已故
    2021-01-18 12:21

    I've had the same issue with SSH defined hosts.
    My ~/.ssh/config looks like this:

    Host myGitServer
    HostName {real address goes here}
    {Some more config for the host here}
    

    My repository remote URL was in the form of ssh://myGitServer/git/project.git

    The problem was that XCode did not read the SSH config to resolve "myGitServer" so the repository was always "offline" for it. I ended up adding "myGitServer" to /etc/hosts.

    I guess that among other things, the "no remotes found" issue is caused when XCode can't directly resolve the name of the GIT remote server.

提交回复
热议问题