Discussion in 'Resources' started by matejdro, Oct 7, 2011.
Stop spamming my thread and go fight somewhere else.
Similar to push, except that you select "fetch" in step 10.
Never used bluej. Eclipse, Netbeans are my favs for java. NP ++ for html.
Edit: And yeah, Stop spamming this poor guy's thread. Sorry matejdro.
Yeah but its asking me for stuff you don't have on here.
Try and keep it on topic?
How do I get my project from my github repository package explorer to my regular eclipse package explorer so I can export the package locally to build my jar?
import github project?or maybe git repositories?
Getting this error, which I don't understand considering I followed everything...
Can't connect to any repository: https://[email protected][email protected]
i get the same?
Awesome! Can't wait to try this.
I keep getting this error when trying to push?
You have to be logged in before copying HTML url.
I was logged in though? :S
Suddenly fixed itself, now i keep getting this?
Scrap all of that, i just use Git Bash now(CMD Window)
Team->Fetch From Upstream
Random error? " An internal Exception occurred during push: Source ref refs/heads/master doesnt resolve to any object." Whats wrong?:/ matejdro
:*( Whats wrong?
Everything works fine until I push my changes. I get this error (although its not clear to me that it is an error).
master: master [rejected - non-fastforward]
None of the files appear on github.
I would suggest in cases like these, to open up your console (cmd), terminal or bash (depending on your OS). Using cd to change the directory of your project.
When you are in that project directory, type: "git push -u origin master", the reason for the "-u" is that hereafter when you do just "git push" git will know that you want to push the master branch to the remote named origin.
The reason why I suggest using the terminal is that it is WAAAAY more verbose on it's errors.
Derp. I had this issue. In the view area, select one file and force push it and it will work.
Yeah a found a fix for it and it seems to run better, but now gives an error saying the remote was rejected. This was a few weeks ago so I've given up on github for now.
EDIT: I don't get how to force push? Please could you explain again
If the remote gets rejected force pushing will not work either... Again, I suggest use the console/terminal!
Can you tell me how to force push anyway?
In eclipse? no friggin clue, in the console: push -f [remote] [branch]
How do my co-devs now fetch the projekt from github? Pushing works but I can't get the fetching from github working... Someone knows how to do that?
git clone [pathToTheGithubRepoHere] < - gets entire repository from github, also adds the github repository as a remote.
make some edits
git add (-u) [file] // Add edits to index
git commit -m [message]
git push (-u origin master)
now everyone else that did the git clone before, or has it added as a repository, can simply do:
git pull (-u origin master)
And how do I force my co-dev's Eclipse Juno to update the projekt every time they open eclipse? So they don't have to merge every single file every time? Maybe pull? But this doesn't work either.. ("The current branch is not configured for pull No value for key branch.master.merge found in configuration")
Edit: Got pull working by editing my master branch under egit and editing upstream branch and remote put still now clue neither how to force to pull when eclipse opens nor if pull is the correct choose
I've followed successfully the instructions in OP, and I see the project in the resources pane. However, even after manually changing the project type to java, I can't export anything. File->export can't see the project.
Thank you so much for this thread!!
I was really new to github and just could not figure how to upload a project (or basicly any files) to github.
Helped a lot, thanks!
Separate names with a comma.