Github and eclipse

Discussion in 'Resources' started by matejdro, Oct 7, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    nicholasntp

    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.
     
  2. Offline

    Butkicker12

    Yeah but its asking me for stuff you don't have on here.
     
  3. Try and keep it on topic? :confused:
     
  4. Offline

    tha d0ctor

    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?

    thanks!
     
  5. Offline

    DomovoiButler

    @tha d0ctor
    import github project?or maybe git repositories?
     
  6. Offline

    Kohle

    Getting this error, which I don't understand considering I followed everything...

    Code:
    Can't connect to any repository: https://[email protected]/Kohle/JoinCommand.git (An internal Exception occurred during push: https://[email protected]/Kohle/JoinCommand.git: not authorized)
     
  7. i get the same?
     
  8. Awesome! Can't wait to try this.
     
  9. Offline

    CRAZYxMUNK3Y

  10. Offline

    matejdro

    You have to be logged in before copying HTML url.
     
  11. Offline

    CRAZYxMUNK3Y

    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)
     
  12. Offline

    NinjaW0lf

    same
     
  13. Offline

    nala3

    Team->Fetch From Upstream
    Team->Rebase
     
  14. Offline

    hawkfalcon

    Random error? " An internal Exception occurred during push: Source ref refs/heads/master doesnt resolve to any object." Whats wrong?:/ matejdro

    :*( Whats wrong?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  15. Offline

    Scullyking

    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.
     
  16. Offline

    Giant

    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.
     
  17. Offline

    hawkfalcon

    Derp. I had this issue. In the view area, select one file and force push it and it will work.
     
  18. Offline

    Scullyking

    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 :)
     
  19. Offline

    Giant

    If the remote gets rejected force pushing will not work either... Again, I suggest use the console/terminal!
     
  20. Offline

    Scullyking

    Can you tell me how to force push anyway? :)
     
  21. Offline

    Giant

    In eclipse? no friggin clue, in the console: push -f [remote] [branch]
     
  22. Offline

    Ch4t4r

    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?
     
  23. Offline

    Giant

    Simple:

    1. git clone [pathToTheGithubRepoHere] < - gets entire repository from github, also adds the github repository as a remote.
    2. make some edits
    3. git add (-u) [file] // Add edits to index
    4. git commit -m [message]
    5. 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)
     
  24. Offline

    Ch4t4r

    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
     
  25. Offline

    Hoolean

    FIXED!
     
  26. Offline

    vemacs

    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.
    Help?
     
  27. Offline

    noobkackboon

    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!
     
  28. Offline

    mbcx2

    I have the same issue :(
    [​IMG]
     
  29. Offline

    sgavster

    ;(
    I can't create one
    "Creation of repositories in the Eclipse workspace is not recommended"
    so I can't select my project ;(
     
  30. Offline

    Panjab

    sgavster

    If I'm right you have to click 'Create Repository' first.
     
Thread Status:
Not open for further replies.

Share This Page