$chiubaca / notes / fleeting / 2021-10-27
  • Learnt how to roll back git commits using git reset HEAD~ --hard
  • git reset HEAD~ --soft will roll back the commits but leaving the changes staged so you can re-commit the change with some tweaks if necessary.
  • git reset HEAD~{number} --hard can be used if you want to rollback several commits in one go
Edit on GitHub ✏️

Hey I'm Alex Chiu 👋. These are my notes for literally anything.

I'm using the Zettelkasten method to organise my thoughts here.

My more polished writings are published to my main blog at chiubaca.com

Follow me on: Github / X (Twitter) / Mastodon / LinkedIn