Phoenixflo44 wrote:I meant I don't know how to upload a mod on GitHub. I've been downloading for a long time, just like unpacking.
Actually it is incredibly easy to do the basic things with Git. When using GitHub it is even more easy.
First step is installing Git on your computer. Install it like any other application. Then you go to GitHub and create a new repository. This gives you a set of commands you need in order to actually "set up" the repository on your computer. Run the commands in the directory where your mod is located (on Windows: Shift+rightclick the folder and select "Open Command Prompt here").
Oh, by the way: GitHub's own help pages are fantastic. Start here:
https://help.github.com/articles/create-a-repo/After doing all the initial stuff there are literally two commands you need on a daily basis:
git commit -a let's you commit all changed files (combine with -m "message" to add a commit message, otherwise the editor will open and let you write a message there) and
git push sends the committed changes to the server. You can commit as many changes you want before pushing them to the server. I usually code and commit some time and when I'm done with everything I want to achieve for the day I push the changes to the server.
For adding new files to the repository copy them where you want within the repository's folder and run
git add path/to/file.name or
git add path/to/folder to add all files within that folder at once. Don't worry, you can run the commands as often you want, git adds the stuff only once. After doing the initial stuff shown by GitHub you need to add the files of your mod to the repository. Run
git status to see what Git currently knows about the repository in relation to the files it has access to.
For deleting files, well, simply delete them. Even if git has some functions for that it also takes care of this automatically when committing the changes (you should commit changes after every larger action like adding/removing files or implementing a new feature).
You should do it right from the beginning on, so read here before starting to commit changes:
https://chris.beams.io/posts/git-commit/See here for the awesomely great Github docoumentation.
https://help.github.com/articles/adding ... mand-line/https://help.github.com/articles/pushing-to-a-remote/See here for a fun little live-demo/tutorial:
https://try.github.io/levels/1/challenges/1