Gavin Wiggins

Home / Presentations / Publications / Software


Undo Changes with Git

Written on April 17, 2025

Undo an accidental git pull.

git reset --keep HEAD@{1}

Undo changes to all local uncommitted files.

git restore .

Gavin Wiggins © 2025.
Made on a Mac with Genja. Hosted on GitHub Pages.