Jump to content

[1.9] Cloning and Using a Git Repository


Asweez

Recommended Posts

There is a git repository that I am contributing to and I can't figure out how to clone it to my computer and use it. I have tried using

gradlew setupDecompWorkspace

,

gradlew eclipse

, and it doesn't work when I try to open it in eclipse. There is no eclipse folder. How do I do this?

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Link to comment
Share on other sites

Step 1: Download the Forge MDK

Step 2: gradlew setupDecompWorkspace, gradlew eclipse on the MDK directory

Step 3: Download the git repository and match the files up (the git will have an /src folder that will be merged with your /src folder, etc.) Note: the github repo will not contain everything which is why Eclipse can't find the project: the repo excluded the Eclipse project files!

Step 4: Open in Eclipse.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Possibly, but I would not do it.

 

I would create a separate folder to be the local repository, which will need to push to a branch on your github account (and then you can use Pull Requests to merge with the main), unless you have permissions to push directly to the main.

 

This insures that you don't need to create a .gitignore file in your working directory to exclude a whole ton of stuff* and instead just need to copy the /src directory from one to the other.

 

*If you don't, then those project files might get committed and clutter the git repo.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.