Source Control (With Github)

written by FruitDragon and TomatoRadio

So. GitHub. What is it, exactly?

GitHub is a source control software and development platform that is used for a variety of reasons. It has a lot of tools to make development easier for programmers, it enables software developers to collaborate on tools (such as RPGMaker MV) that don’t have built-in collaboration features, and it saves your edit history— almost like snapshots— of your code so that you can do things like trace bugs back to their sources.

Also, GitHub increases visibility into every aspect of what you’re actually doing when you mod. You can literally see exactly what you changed when you commit to a repository. This is called a diff.

Here’s an example of one:

(Source, parallels diff, courtesy of FruitDragon)

The red is the old change, the green is the new change.

I know I’m throwing a lot of new words out, so here’s a brief dictionary for GitHub terms.

  • Repository: Short form “repo”, it's a folder that basically acts like a project folder. It can be compared to a Google Drive folder.

  • Local Repository: The repository where it is located on your computer.

  • Source Control: Also known as version control, it’s a system or software used to track changes to files (such as code files) over time.

  • Diff: Short for ‘difference’, it’s basically a summary or overview of the changes that have occurred to a file.

  • Origin: The online copy of your repository hosted by GitHub.

  • Commit: Saving your changes to the repository, essentially creating a snapshot of the changes at the time of committing.

  • Push: Uploading your commits to the origin, so that they can be downloaded (or pulled) by other collaborators or devices.

  • Pull: Downloading new commits from the origin, so that your local repository is updated to the most recent version.

  • Main: The main branch of your repository.

  • Branch: A controlled environment to test certain changes before committing to the main branch, where the majority of the code resides. Can also be used to save a previous version, especially if you have an old release you want to keep. (Such as a demo release.)

Here’s an example of the branches in the parallels repository.

And now here’s a handy link to a slideshow that talks more about the terms I just defined.

(Note: GitHub isn’t the only type of source control software out there. If you’d rather use something else, that’s up to you. OMORI itself was made using DropBox as a source control software (somehow…?), which goes to show that you could probably use just about anything. However, GitHub is definitely one of the most versatile and powerful tools out there for source control and collaboration, and a lot of OMORI modders use it. Once you understand what to do, it’s also easy to use. So this tutorial will be talking only about GitHub specifically.)

Now let’s get into how to use GitHub for OMORI modding.

Last updated