Re: Git Push command within Xcode 4
Re: Git Push command within Xcode 4
- Subject: Re: Git Push command within Xcode 4
- From: "Pelaia II, Tom" <email@hidden>
- Date: Fri, 25 Mar 2011 15:09:21 -0400
- Acceptlanguage: en-US
- Thread-topic: Git Push command within Xcode 4
I have fixed the problem that prevented me from pushing to the remote. The problem is that the name of the Git repository is critical. It must match the name of a remote that you add using the "git remote add ..." command.
Thanks to all who responded to me.
On Mar 25, 2011, at 2:41 PM, Pelaia II, Tom wrote:
> Thanks for the feedback. I reviewed your postings, and I had already done the equivalent steps for my project in SourceForge. The only difference is that I didn't have to deal with the colon issue because the URL didn't have colons in the domain name. I even dumped my local copy and cloned the the remote to get the working copy and I have ssh keys configured. Everything works fine from the command line, and Xcode 4 works fine with the local repository. The issue is that Xcode 4 fails with the push/pull commands even though all is green.
>
> I just discovered that the commands get logged, and I see that it is using the wrong name for the remote, so at least I have something with which to work.
>
>
> On Mar 25, 2011, at 2:09 PM, Quincey Morris wrote:
>
>> On Mar 25, 2011, at 10:21, Pelaia II, Tom wrote:
>>
>>> Has anyone gotten the git Push command to work from within Xcode 4 for any remote repository? Has anyone gotten it to work with SourceForge?
>>>
>>> I cannot get the Push command to work from within Xcode 4. It works fine from the command line.
>>>
>>> I have a Git repository configured for a Source Forge project. I can clone the repository without problems and I can view the history without problems. Xcode displays the status with the green ball indicating that the access to the repository is okay.
>>>
>>> When I attempt to push changes to the remote repository using File - Source Control - Push..., Xcode displays a dialog showing that the repository is online. When I press the "Push" button, I get the following error messages:
>>> fatal: 'Open XAL SF' does not appear to be a git repository
>>> fatal: The remote end hung up unexpectedly
>>
>> Did you take a look at my series of posts over this last week? Search for subject "Xcode 4 + git (part 1)", also part 2, part 3 and part 4, so far. You might find something in there that helps. (I was using Beanstalk.)
>>
>> The short answer is probably that your local repository isn't actually set up to track the remote one. You could try moving it aside and cloning a new copy from the remote repository.
>>
>> Also, whenever anything like this fails, always try a second time. There are various cases where Xcode always fails the first time.
>>
>>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden