Skip to Content
Navigation:

A stick figure smiling

Here's a preview from my zine, Oh Shit! Git!! If you want to see more comics like this, sign up for my saturday comics newsletter or browse more comics!

Image of a comic. To read the full HTML alt text, click "read the transcript".

browse more comics! get the zine!
read the transcript!
  1. Stash any uncommitted changes (so they don’t get mixed up with the changes from the commit): git stash

  2. Undo your most recent commit: git reset HEAD^
    (safe: this points your branch at the parent commit but doesn’t change any files)

  3. Use git add to pick and choose which files you want to commit and make your new commits!

  4. Get your uncommitted changes back: git stash pop

person: you can use git add -p if you want to commit some changes to a file but not others!

Saturday Morning Comics!

Want another comic like this in your email every Saturday? Sign up here!

I'll send you one of my favourite comics from my archives every Saturday.
© Julia Evans 2024 | All rights reserved (see the FAQ for notes about licensing)