Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Struggling to upload java project to GIT repository(Struggling to upload java project to GIT repository)
Struggling to upload java project to GIT repository [message #1853093] Fri, 17 June 2022 11:35 Go to next message
Adam  Moore is currently offline Adam MooreFriend
Messages: 1
Registered: June 2022
Junior Member
index.php/fa/42208/0/For a college assignment, we had to import a java project into ecplipse from our College lecturers public GIThub repository, then add a final class into the project.
Obviously this project is assaigned to her repository.
Now im trying to upload the project from eclipse to my private GIThub repository, but im running into issues. When i right click the project then go to teams > committ. It's showing all the files in her repository, but when i select mt reposiutory to upload the project to, none of the files are showing up.

I already have my repository imported to eclipse, its just committing the project to that repository then is where im having the trouble.

I'll attach screenchots to this question for further explanation.

Any help would be much appreciated.


  • Attachment: git2.jpg
    (Size: 1.22MB, Downloaded 60 times)
Re: Struggling to upload java project to GIT repository [message #1853148 is a reply to message #1853093] Mon, 20 June 2022 13:33 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 479
Registered: August 2016
Senior Member
Your lecturer should have given you an introduction to Github and how to work with it.

From your description it's next to impossible to know what's going on, and your photo of the git staging view is spectacularly unhelpful.

I can only guess what you did:
* You cloned your lecturer's Github repo.
* You imported the project and made your changes. The project would still be associated with your lecturer's repo!
* You cloned your private repo.
* And now you wonder how to get your change into your private repo.

Do this differently:
* Create a fork of you lecturer's repo on Github.
* Clone your fork.
* Import the project from your fork.
* Make your changes. (If you already have made changes before: copy them aside, then here copy them into the project.)
* Push to your fork.
* Once you're happy with it, do whatever your instructor said you should do to submit your assignment solution (probably create a pull request in the Github web UI).

At no point should it be necessary to clone your instructor's Github repo.
Previous Topic:Launch Configurations
Next Topic:How to get User info from personal access token
Goto Forum:
  


Current Time: Tue Jul 05 01:39:14 GMT 2022

Powered by FUDForum. Page generated in 0.02470 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top