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". get the zine!
read the transcript!

Did you accidentally commit a 1.5GB file along with the files you actually wanted to commit? We’ve all done it.

  1. Remove the file from Git’s index: git rm --cached FILENAME
    This is safe: it won’t delete the file

  2. Amend your last commit: git commit --amend

  3. (optional) Edit your .gitignore so it doesn’t happen again

person: now your coworkers won’t be stuck downloading a HUGE git commit