Skip to content

Instantly share code, notes, and snippets.

View ChrisVAyala90's full-sized avatar

Chris V Ayala ChrisVAyala90

View GitHub Profile
@ChrisVAyala90
ChrisVAyala90 / 0fixup.md
Created June 17, 2024 05:41 — 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.