Mark Stosberg
  • Home
  • Mapping
  • Tech
  • Archive
  • About
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 can re-order the last two git commits to make the
By Mark Stosberg Mar 31, 2016

Subscribe to Mark Stosberg

Subscribe to receive new posts by email
  • mark@stosberg.com
Mark Stosberg © 2022. Powered by Ghost