Skip to content

Instantly share code, notes, and snippets.

View renhiyama's full-sized avatar
🙃
Studying in B.Tech CSE && experimenting with low level api designing

Ren Hiyama renhiyama

🙃
Studying in B.Tech CSE && experimenting with low level api designing
View GitHub Profile
@Obydux
Obydux / Fabric-Quilt-Server-Optimization.md
Last active April 21, 2025 17:14
Fabric/Quilt Server Optimization

Fabric/Quilt Server Optimization

This has updated for 1.20.4, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.

Mods

@CrookedNumber
CrookedNumber / gist:8964442
Created February 12, 2014 21:02
git: Removing the last commit

Removing the last commit

To remove the last commit from git, you can simply run git reset --hard HEAD^ If you are removing multiple commits from the top, you can run git reset --hard HEAD~2 to remove the last two commits. You can increase the number to remove even more commits.

If you want to "uncommit" the commits, but keep the changes around for reworking, remove the "--hard": git reset HEAD^ which will evict the commits from the branch and from the index, but leave the working tree around.

If you want to save the commits on a new branch name, then run git branch newbranchname before doing the git reset.