Secure in-game Git commands for Paper servers, built for developers and server admins who want to manage repositories directly from Minecraft.
GitCraft is a Paper plugin that lets server admins and developers run Git commands directly from Minecraft using /git.
This plugin is built and tested for Paper
1.21.11.It may work on other
1.21.xversions, but those versions have not been tested.
origin remote1.21.11/git help
/git init --path=<folder>
/git remote --add --url=<repo-url> --path=<folder>
/git remote --set-url --url=<repo-url> --path=<folder>
/git remote --remove --path=<folder>
/git add . --path=<folder>
/git add <file> --path=<folder>
/git commit -m=<message> --path=<folder>
/git status --path=<folder>
/git reset --path=<folder>
/git reset --hard --path=<folder>
/git fetch --path=<folder>
/git pull --path=<folder>
/git push --path=<folder>
/git login --username=<username> --token=<token>
/git whoami
/git logout
Git-Craft.jar in your server's plugins folder./git help./git init --path=plugins/MyProject
/git remote --add --url=https://github.com/user/repo.git --path=plugins/MyProject
/git login --username=YourUsername --token=YourToken
/git add . --path=plugins/MyProject
/git commit -m=update-files --path=plugins/MyProject
/git push --path=plugins/MyProject
Create a GitHub personal access token with repository access.
For fine-grained tokens, use:
Repository access: selected repository
Contents: read and write
Metadata: read-only
Then log in:
/git login --username=YourUsername --token=YourToken
gitcraft.command.help
gitcraft.command.init
gitcraft.command.remote
gitcraft.command.add
gitcraft.command.commit
gitcraft.command.reset
gitcraft.command.status
gitcraft.command.fetch
gitcraft.command.pull
gitcraft.command.push
gitcraft.command.login
gitcraft.command.whoami
gitcraft.command.logout
By default, commands are available to operators.
# WARNING: Disabling this allows users to push to public Git hosts such as GitHub or GitLab.
disable-unsafe-warning: false
GitCraft stores credentials in an encrypted local H2 database inside the plugin data folder.
Public Git hosting is blocked by default when adding remotes. To allow GitHub or GitLab remotes, set:
Allow public Git hostsdisable-unsafe-warning: true
Use this carefully. For production servers, self-hosted Git services such as Gitea or Forgejo are recommended.
1.21.1121 or newer