|Pushing Repository to Github [message #652507]
||Fri, 04 February 2011 10:24
Registered: February 2011
I can't find how to actually push a new local repository to a remote one, using Eclipse Helios and EGit 0.10.1.
As far as I understand (if otherwise, please advise), if you have a local Java project in Eclipse and want to copy everything to Github via EGit on Eclipse, you create a local repository and then use the "Push" option for the corresponding project.
So, as per the manual (and the Github tutorial), after installing Git on my machine, I configured EGit with the necessary user name information, in Eclipse, via
Window > Preferences > Team > Git > Configuration
Then, for my simple Java project, in Eclipse, I right-clicked on the project name and selected
Team > Share Project > Git > Create Repository
All worked OK.
Then I created a remote repository on my Github.com account (say, with username "user"). I named the Github repository (say, "test") and got the HTTPS URI, which would be
https://user @ github.com/user/test.git
Then, as per the instructions on http://wiki.eclipse.org/EGit/User_Guide#Pushing_to_other_Rep ositories (but for HTTPS, not SSH), I right-clicked on the project name in Eclipse and selected
Following the above steps, the "Push To Another Repository" window pops up, where I supply the HTTPS URI and the other information (username, password), click on the "Next" button and, after successful authentication, get to the "Push Ref Specifications" dialog box.
This is the point where I get stuck!
The dialog box on my screen, after following the instructions, looks like http://wiki.eclipse.org/Image:Egit-0.9-push-wizard-refspec-a llbranches.png
However, the "Next >" and "Finish" buttons are grayed out and I cannot get beyond that point.
In the Source ref list (at the top left of the dialog box) there is only 1 option, HEAD, which, if I select, a red "x" appears and hovering the mouse pointer over it an error message pops up: "HEAD is not a valid ref in local repository."
Could someone please advise as to what I should do from here on?
[Updated on: Fri, 04 February 2011 11:42]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02824 seconds