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!
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.
Remove the file from Git’s index:
git rm --cached FILENAME
This is safe: it won’t delete the fileAmend your last commit:
git commit --amend
(optional) Edit your
.gitignore
so it doesn’t happen again
person: now your coworkers won’t be stuck downloading a HUGE git commit
Saturday Morning Comics!
Want another comic like this in your email every Saturday? Sign up here!