Mark Stosberg
  • Home
  • Mapping
  • Bike
  • Tech
  • Archive
  • About
Sign in Subscribe

Git

Swapping the last two git commits

Swapping the last two git commits

So you made a "WIP" git commit that you didn't intend to push and then you made another commit after it. Now you'd like to undo the WIP commit but it's no longer the most recent commit. Here's how you
Mark Stosberg Mar 31, 2016

Subscribe to Mark Stosberg

Subscribe to receive new posts by email
  • 📧 mark@stosberg.com
  • 📣 Mastodon
  • 💸 Leave a tip
Mark Stosberg © 2025. Powered by Ghost