Compatibility
Minecraft: Java Edition
26.3
Platforms
Supported environments
Client-side
Server-side
Singleplayer
Links
Tags
Creators
Details
Licensed MIT
Published 5 days ago
Updated yesterday
gitup
A Minecraft mod used for backing up clients and servers using Git™.
Git and the Git logo are trademarks of the Software Freedom Conservancy. This project is independent and is not associated with Git or the Git project in any way.
Gitup depends on the Git CLI being installed and on the user's PATH, and also requires for the game instance to have an already configured Git repo with push privledges. All credentials are handled by the Git CLI itself and is not read or stored by Gitup. All network access comes from Git commands using the repos already configured for that repository.
How to use
- Install the .jar file to your mods/ directory
- Start the game, then configure the mod in mods/gitup.json
Configuration
Gitup supports the following options in gitup.json:
- extraArgs.fetch: Add extra flags to when Gitup invokes git fetch.
- extraArgs.pull: Add extra flags to when Gitup invokes git pull.
- extraArgs.add: Add extra flags to when Gitup invokes git add.
- extraArgs.commit: Add extra flags to when Gitup invokes git commit.
- extraArgs.push: Add extra flags to when Gitup invokes git push.
- extraArgs.diff_index: Add extra flags to when Gitup invokes git diff-index.
- pushInterval: How often Gitup should attempt to create a backup. 0 = disable.
- pushIntervalUnit: What unit the pushInterval option is in. SECONDS, MINUTES, HOURS, DAYS, WEEKS, and YEARS are currently supported.
- commitMessageFormat: The text format to be used in the message of git commit. This option supports Java DateTimeFormatter formats.
- lastPushTimestamp: The timestamp of the last backup. Should generally be ignored by most users.
Dependencies
- Cloth Config API
- Fabric API
Future features
- An automatic configurable git pull or git reset when there are repeated game crashes

