Skip to content

Instantly share code, notes, and snippets.

Edward Thomson ethomson

Block or report user

Report or block ethomson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
set -eufo pipefail
if [ "$#" -ne 2 ]; then
echo "usage: $0 source_repo_url target_repo_url" >&2
exit 1
ethomson /
Created Oct 21, 2016 — forked from carlosmn/
An extremely case-specific implementation of git-filter-branch
# It's no libgit2, but it's pretty useful
. $(git --exec-path)/git-sh-setup
set -e
set -e
# clone a bare repository, because even with `--no-checkout`, clone will create a
# folder for a working directory, and it will ignore the `--git-dir` option.
# but the restore all the configuration that would be there.
git clone --bare .dotfiles.git
git --git-dir=.dotfiles.git config core.bare false
git --git-dir=.dotfiles.git config push.default simple

Keybase proof

I hereby claim:

  • I am ethomson on github.
  • I am ethomson ( on keybase.
  • I have a public key whose fingerprint is 3D70 FAC9 2328 2E35 0E6B D074 9526 1E36 403C 1FC0

To claim this, I am signing this object:

You can’t perform that action at this time.