Git in minecraft! Blew up your base? /git revert. Upload using /git push. All git features supported, including remotes and branches.
Git in minecraft! Blew up your base? /git revert. Upload using /git push. All git features supported, including remotes and branches.
the reviewer requested README changes. i did that. and there was also this other complicated bug that was fixed by refactoring the code.
download v1.0.1 from GitHub https://github.com/itzmetanjim/mcgit/releases/tag/v1.0.1 and put it in your mods folder
Log in to leave a comment
Requires Fabric 1.21.11
All commands have been implemented! you can even clone my house if you want: https://github.com/itzmetanjim/village
/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 ommitted to revert to the latest commit./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 listCommits Lists all commits in the current branch./git listRepos 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 encha…Log in to leave a comment
revert reset status listCommits listRepos
NOTE: The Couldn't set block messages are NOT a bug! The command is working properly with all blocks being set correctly.
/git revert ... /git reset but --hard, ... is a commit hash. This does change the world./git reset [commit-hash] Reset to a specific commit hash or the latest commit. This does not revert the actual world./git status Show the current status of the repository, including staged changes, unstaged changes, but not untracked blocks/entities./git listCommits Lists all commits in the current branch./git listRepos Lists all available repositoriesLog in to leave a comment
Requires Fabric 1.21.11
/git init <name>: Initialize a new MCGit repository with name. Names have to be unique. Repositories are shared between worlds and servers and stored locally (unless you add a remote)/git add <coords1> [optional coords2] ["hollow","outline", or nothing] Add a single block/a cuboid of blocks to staging. (after another update, automatic adding of placed blocks will be added)/git rm <coords1> [optional coords2] ["hollow","outline", or nothing] Remove a single block/a cuboid of blocks from the world and the repository. (after another update, automatic removal of broken blocks will be added)/git unstage <coords1> [optional coords2] ["hollow","outline", or nothing] Similar to /git rm or git rm --cached in real git. Removes from the repository but not from the world./git commit <message...> Commit!/git origin <coords> Change the origin of your build. By default, this is the place where you init ed or cloned the repository. All blocks are relative to this origin./git activate <repo_name> Switch to another repository