Posted September 15, 201411 yr I have 2 questions. 1. What folder/files should I be committing to a git repo I'm guessing everything in src should be fine? 2. Are we allowed to release our mods under any license we want? The one I want to use is the wtfpl but I'm not sure if that's against what Forge/Minecraft allows.
September 15, 201411 yr Assuming you're using 1.7.x then you should put everything into the repo that is sufficient to rebuild the entire mod. So you include some of the gradle stuff. My gitignore looks like this: $ cat .gitignore /* !/src !build.gradle !*.project !/gradle !gradlew !gradlew.bat Then this can be downloaded/cloned onto any other computer and just run the gradlew setupDecompWorkspace and the gradlew eclipse commands and you'll have same modding environment ready to go. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
September 15, 201411 yr Author You sure about that? Sounds a bit weird to be adding more than just the src. Would I also exclude the eclipse directory from it too?
September 15, 201411 yr You sure about that? Sounds a bit weird to be adding more than just the src. Would I also exclude the eclipse directory from it too? I used to just do the source but then several experts explained that was wrong. They were right -- the gradle stuff is not very big but contains everything to recreate the entire environment. Regarding excluding eclipse folder, yes, do you know how the gitignore works? If you look at my example above I don't exclude that from being ignored (which means it is ignored). The eclipse folder gets recreated by the gradlew eclipse command. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
September 15, 201411 yr Author With your git ignore file I still get this meaning eclipse actually gets added to the repo with all my project settings, etc. which I really don't think it meant to be added. I'm running git init in the main folder btw. .classpath .gitingore .gradle/ .project .settings/ CREDITS-fml.txt LICENSE-fml.txt MinecraftForge-Credits.txt MinecraftForge-License.txt README.txt bin/ build.gradle eclipse/ forge-1.7.10-10.13.0.1180-changelog.txt gradle/ gradlew gradlew.bat src/
September 16, 201411 yr It is probably the /* line. If you're running it from main folder it would pick up all folders. I guess I run mine one folder lower than you do. Anyway, just play around with the gitignore to suit your folder structure. My point is that in addition to source most people recommend including the gradle stuff. It really is a nice way to clone the full build context. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
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.