MCGit

MCGit

Use Git/GitHub in Minecraft to add version control to your builds. Blew up your base? Just /git revert

by
139 Downloads
fabricmanagementtechnologyutility
Rent Server with this Mod

Screenshots

Cover Photo

About this Mod

MCGit

MCGit Logo

Requires MC 26.1 Fabric, fabric-api and fabric-language-kotlin

MCGit is a Minecraft mod that brings Git-like version control to your Minecraft world. It allows you to track changes to
blocks and entities, commit those changes, and manage different versions of your world.

  • If you blow up your base or do a change that doesn't look good, you can just /git revert.
  • If you make a change that does look good, do a commit: /git commit <msg>
  • You can back up your build and share it using a free hosting service like GitHub.
  • You can never lose your progress, every committed version of the build is saved.
  • You can "fork" other people's builds and modify them to your liking as long as they allow it.
  • Other people's builds can be cloned directly into your world.
  • Very lightweight and easy to use.
  • Does not require external tools: you do not need to install Git or any other software outside of Minecraft. MCGit
    bundles JGit, a pure Java implementation of Git, to handle all Git operations internally.

Commands

Commands marked with @ require setblock access.
[..] indicates optional arguments.

NOTE: It is perfectly normal for errors like "Couldn't set block" to appear. These just mean that MCGit tried changing a block to itself. This is harmless.

NOTE2: If you do not have /git autoadd and /git autorm enabled, you need to manually add and remove block/s to/from the staging area using /git add and /git rm.
To prevent confusion, this is now enabled by default but only in creative mode.

  • /git init <name> Initialize a new MCGit repository.
  • /git activate <name> Switch to the specified repository.
  • /git add <coords> Add one block at the specified coordinates to the staging area.
  • /git add <coords> <coords> [|hollow|outline] Add a cuboid of blocks to the staging area
  • @/git rm <coords> [coords] [|hollow|outline] Remove blocks/entities from the staging area and revert them. NOTE: Changing blocks/entities in the world needs to be done by issuing commands, as this is a clientside mod.
  • /git unstage ... does not revert , only removes from staging area.
  • /git commit [-m] "message" Commit the staged changes with a message. The -m flag does nothing.
  • @/git revert [commit-hash] /git reset but it changes the world as well. Commit hash can be omitted to revert to the latest commit (HEAD).
  • /git reset [commit-hash] Reset to a specific commit hash or the latest commit. This does not revert the actual world. This is the reverse of /git add
  • /git status Show the current status of the repository, including staged changes, unstaged changes, but not untracked blocks/entities.
  • /git commitList Lists all commits in the current branch.
  • /git repoList Lists all available repositories.
  • /git autoadd [toggle|on|off] Enable or disable automatic addition of changes to the staging area. To quickly switch between, use an enchanted red wool in offhand to make this act toggled (so if you have it in offhand, auto add is off, otherwise on).
  • /git autorm [toggle|on|off] Enable or disable automatic removal of deleted blocks/entities from the staging area. To quickly switch between, use an enchanted red wool in offhand to make this act toggled (so if you have it in offhand, autorm is off, otherwise on).
  • @/git clone <name> <url/local> Clone a remote repository from the specified URL into a new local repository with the given name.
    URL can be a local repository name (like myrepo), or a GitHub author/repo (like octocat/Hello-World) or a full URL to a git repository (like https://github.com/octocat/Hello-World.git).
  • /git clonesoft <name> <url> /git clone but do not put it in the world
  • @/git put <local> /git clone but do not save as a new repo.
  • /git remote add [remote=origin] <url> Add a new remote repository with the specified name and URL.
  • @/git pull [remote=origin] [branch=main] [default|ff-only|rebase|no-rebase] Fetch and merge changes from the specified remote repository and branch into the current branch. default is the same as ff-only but included for autocomplete user-friendliness.
  • /git fetch [remote=origin] [branch=main] [default|ff-only|rebase|no-rebase] /git pull
  • /git push [force|noforce] [remote=origin] [branch=main] Push committed changes to the specified remote repository and branch.
  • /git auth <username> [password] Store authentication credentials for accessing remote repositories. If password is omitted, only username is stored.
    NOTE Credentials are stored unencrypted as plaintext.
  • /git branch <name> Switch to a branch with the given name, or create it if it does not exist.

Available Versions

MCGit 1.0.3release
MC 26.1, 26.1.1fabric
April 4, 2026
MCGit 1.0.2release
MC 1.21.11fabric
April 4, 2026
MCGit 1.0.1release
MC 1.21.11fabric
February 5, 2026
MCGit 1.0.0release
MC 1.21.11fabric
January 29, 2026

How to Install MCGit on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.1).

3

Install Mod

Open the mod browser in the dashboard and search for "MCGit". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

26.1.1, 26.1, 1.21.11

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

MCGit server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.1). You can switch loaders with one click in the panel.

Is MCGit compatible with fabric?

MCGit officially supports fabric for Minecraft 26.1.1, 26.1, 1.21.11. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with MCGit – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if MCGit consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install MCGit with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU General Public License v3.0 only
Server-side
Unsupported

Supported Versions

26.1.126.11.21.11