Skip to content

Instantly share code, notes, and snippets.

View Ianvdl's full-sized avatar
🐘
The local elephant tamer

Ian van der Linde Ianvdl

🐘
The local elephant tamer
View GitHub Profile
@Ianvdl
Ianvdl / 0fixup.md
Created March 4, 2024 13:31 — forked from silent1mezzo/0fixup.md
On undoing, fixing, or removing commits in git

A git choose-your-own-adventure!

This document is an attempt to be a fairly comprehensive guide to recovering from what you did not mean to do when using git. It isn't that git is so complicated that you need a large document to take care or your particular problem, it is more that the set of things that you might have done is so large that different techniques are needed depending on exactly what you have done and what you want to have happen.