Github and eclipse

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

  1. Offline

    matejdro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Stop spamming my thread and go fight somewhere else.
    tips48 likes this.
  2. Offline

    matejdro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Similar to push, except that you select "fetch" in step 10.
  3. Offline

    nicholasntp

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.

    This post has been edited 1 time. It was last edited by nicholasntp Oct 18, 2011.
  4. Offline

    Butkicker12

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yeah but its asking me for stuff you don't have on here.
  5. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Try and keep it on topic? :confused:
  6. Offline

    tha d0ctor

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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!
  7. Offline

    DomovoiButler

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @tha d0ctor
    import github project?or maybe git repositories?

    This post has been edited 1 time. It was last edited by DomovoiButler Oct 24, 2011.
  8. Offline

    Kohle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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)
  9. Offline

    BlockCat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i get the same?
  10. Offline

    iKeirNez

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Awesome! Can't wait to try this.
  11. Offline

    CRAZYxMUNK3Y

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    This post has been edited 3 times. It was last edited by CRAZYxMUNK3Y Feb 1, 2012.
  12. Offline

    matejdro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You have to be logged in before copying HTML url.
  13. Offline

    CRAZYxMUNK3Y

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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)

    This post has been edited 2 times. It was last edited by CRAZYxMUNK3Y Jun 25, 2012.
  14. Offline

    NinjaW0lf

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    same
  15. Offline

    nala3

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Team->Fetch From Upstream
    Team->Rebase
  16. Offline

    hawkfalcon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Random error? " An internal Exception occurred during push: Source ref refs/heads/master doesnt resolve to any object." Whats wrong?:/ @matejdro

    This post has been edited 5 times. It was last edited by hawkfalcon Jul 12, 2012.
  17. Offline

    hawkfalcon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    :*( Whats wrong?
  18. Offline

    Scullyking

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  19. Offline

    Giant

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  20. Offline

    hawkfalcon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Derp. I had this issue. In the view area, select one file and force push it and it will work.
  21. Offline

    Scullyking

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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 :)

    This post has been edited 1 time. It was last edited by Scullyking Sep 8, 2012.
  22. Offline

    Giant

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    If the remote gets rejected force pushing will not work either... Again, I suggest use the console/terminal!
  23. Offline

    Scullyking

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can you tell me how to force push anyway? :)
  24. Offline

    Giant

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    In eclipse? no friggin clue, in the console: push -f [remote] [branch]
  25. Offline

    Ch4t4r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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?
  26. Offline

    Giant

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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)
  27. Offline

    Ch4t4r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    This post has been edited 3 times. It was last edited by Ch4t4r Sep 16, 2012.
  28. Offline

    Hoolean Retired Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    FIXED!

    This post has been edited 1 time. It was last edited by MrBluebear3 Oct 30, 2012.
  29. Offline

    vemacs

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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?
  30. Offline

    noobkackboon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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!

Share This Page