So I want to be able to work on my mods from my desktop and from my laptop, I've tried Eclipse's Git feature with Github and didn't really seem to like and was wondering if there was another way to share my code between my desktop and laptop. What I currently have tried was using a network drive on my desktop then import the project on my laptop from it. It work well and allow me to share my code but the problem is I can't test run Minecraft on my laptop from Eclipse unless if I change MCP_TO_SRG, MOD_CLASSES, and nativesDirectory in environments. I don't want to be always changing these every time I switch to my desktop or laptop. So can I make it so there are two of these one for my desktop and one for my laptop or is there something else I can do?
Git and Github is the best in my opinion. And it is easy to do it in eclipse. Just create a git repo in the root of the Mdk and then stage all the files and commit. Then create a new repo in github(Do not initialize with a readme or .gitignore file) get the repo url and push your project from eclipse using the url.
Then get to the second device open eclipse and clone the repo and import the project and it is done. The only important thing is you have to create the git repo in the root of the mdk(the folder with the .gitignore file by Forge).
If you have used git before it should be dead easy.
Use a symbolic link in the network folder for the gradle files and source code (build.gradle, src, gradlew, gradle), excluding the build and .gradle folders.
Then on your other computer, create a symbolic link from those files, then setup the workspace.
The changes you make should sync between the two, aside from the main issue of remaking the dev workspace every time you decide to change the gradle build file.
But using Github is way better as you can also access it out of your local network too and it is less complicated than doing it on a network drive and you can sync your changes between your devices easily using the pull feature. If you don’t want others to see your code you can create a private repository making it accessible only to you and the people you want to be accessible.
But using Github is way better as you can also access it out of your local network too and it is less complicated than doing it on a network drive and you can sync your changes between your devices easily using the pull feature. If you don’t want others to see your code you can create a private repository making it accessible only to you and the people you want to be accessible.
I think they're more concerned about working on their project on the main computer, then moving onto their other computer, without the extra steps of having to commit, push and pull.
master801 thanks for the tip on symbolic links, now everything works just like how I want it and my Minecraft startup time on my laptop is also now better since I'm only sharing the code and not the whole project. johan2403 although using GitHub would properly also do the same thing, there's just more steps for having to share the code.
So I want to be able to work on my mods from my desktop and from my laptop, I've tried Eclipse's Git feature with Github and didn't really seem to like and was wondering if there was another way to share my code between my desktop and laptop. What I currently have tried was using a network drive on my desktop then import the project on my laptop from it. It work well and allow me to share my code but the problem is I can't test run Minecraft on my laptop from Eclipse unless if I change MCP_TO_SRG, MOD_CLASSES, and nativesDirectory in environments. I don't want to be always changing these every time I switch to my desktop or laptop. So can I make it so there are two of these one for my desktop and one for my laptop or is there something else I can do?
Git and Github is the best in my opinion. And it is easy to do it in eclipse. Just create a git repo in the root of the Mdk and then stage all the files and commit. Then create a new repo in github(Do not initialize with a readme or .gitignore file) get the repo url and push your project from eclipse using the url.
Then get to the second device open eclipse and clone the repo and import the project and it is done. The only important thing is you have to create the git repo in the root of the mdk(the folder with the .gitignore file by Forge).
If you have used git before it should be dead easy.
Use a symbolic link in the network folder for the gradle files and source code (build.gradle, src, gradlew, gradle), excluding the build and .gradle folders.
Then on your other computer, create a symbolic link from those files, then setup the workspace.
The changes you make should sync between the two, aside from the main issue of remaking the dev workspace every time you decide to change the gradle build file.
But using Github is way better as you can also access it out of your local network too and it is less complicated than doing it on a network drive and you can sync your changes between your devices easily using the pull feature. If you don’t want others to see your code you can create a private repository making it accessible only to you and the people you want to be accessible.
I think they're more concerned about working on their project on the main computer, then moving onto their other computer, without the extra steps of having to commit, push and pull.
master801 thanks for the tip on symbolic links, now everything works just like how I want it and my Minecraft startup time on my laptop is also now better since I'm only sharing the code and not the whole project. johan2403 although using GitHub would properly also do the same thing, there's just more steps for having to share the code.