Skip to content

Instantly share code, notes, and snippets.

@jruydemir
jruydemir / alter_git_history.md
Last active June 30, 2021 21:10
Altering a Git Repo's History in 2021

Altering a Git Repo's History in 2021

There are a myriad of reasons you might want to do this. Maybe someone thought it was a good idea to commit binaries and now your repo is enormous and takes 30 minutes to clone. Maybe someone accidentally or otherwise commited a (but likely many) passwords, and now even though you've removed them, they are still retrievable through the commit history.

Either way it's now up to you to do the one thing git was designed not to do: Forget.

Preparation

1. Sync with your Developers

You will be making changes to the history of the repo. This will cause problems for others working on the repo in parallel to you.

  • Make a plan for a code freeze.
@jruydemir
jruydemir / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jruydemir
jruydemir / keybase.md
Last active September 23, 2019 22:19
keybase.md

Keybase proof

I hereby claim:

  • I am jruybal on github.
  • I am jruybal (https://keybase.io/jruybal) on keybase.
  • I have a public key ASB-xfgHNIHNDykAXI4WHbGoQykkPKYAORlxzcyq12croAo

To claim this, I am signing this object: