The command was git reset.
Git reset is a direct, fast way to move the current branch to a specific commit. It changes the commit that HEAD points to. It can also update the staging area and working directory. When running a Proof of Concept (POC), this is critical. A Git reset POC shows exactly how code history can be rewritten at will.
There are three main modes:
git reset --soft <commit> moves HEAD to the commit, keeps files staged.git reset --mixed <commit> moves HEAD and resets the staging area, keeps file changes in the working directory.git reset --hard <commit> moves HEAD, resets staging, and overwrites the working directory to match the commit.
In a Git reset POC, use --soft when you want commits gone but staged changes intact. Use --mixed when you want to unstage without losing file changes. Use --hard when you must discard everything after a point in history.
Always confirm the commit hash with git log --oneline. Then run the reset. Your branch will now point to the target commit. This is not reversible unless you have the old commit hashes saved. In real projects, reset with care. In a POC, it shows mastery over local history.
Git reset can rewrite project history quickly. It is the right tool for cleaning up experimental branches, cutting away bad merges, or demonstrating version control power in a proof-of-concept.
Try it yourself. Build a Git reset POC and see history rewritten in seconds. Deploy it to hoop.dev and watch it run live in minutes.