Skip to content

Instantly share code, notes, and snippets.

View emilien-jegou's full-sized avatar
:shipit:

Emilien Jegou emilien-jegou

:shipit:
View GitHub Profile
@oconnor663
oconnor663 / bad_git.sh
Created October 4, 2017 17:02
edit a git commit without changing the hash
#! /bin/bash
d="$(mktemp -d)"
# Make a git repo with one file in it.
mkdir "$d/good"
cd "$d/good"
git init
echo good > file.txt
git add -A