Skip to content

Instantly share code, notes, and snippets.

@samueljohn
Last active December 15, 2015 15:19
Show Gist options
  • Save samueljohn/5280700 to your computer and use it in GitHub Desktop.
Save samueljohn/5280700 to your computer and use it in GitHub Desktop.

Revisions

  1. samueljohn revised this gist Mar 31, 2013. 1 changed file with 10 additions and 2 deletions.
    12 changes: 10 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,14 @@

    git checkout -b foo
    git filter-branch --prune-empty --index-filter 'git ls-files --full-name --cached | grep -F --invert-match --file=/tmp/list --color=never | xargs -0 git rm -q --cached --ignore-unmatch ' --subdirectory-filter 'Library/Formula' -d /Volumes/ramdisk -f foo
    diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1048576`

    cd $(brew --repository)

    git checkout -b moveit

    git filter-branch --prune-empty --index-filter 'git ls-files --full-name --cached | grep -F --invert-match --file=/tmp/list --color=never | xargs git rm --quiet --cached --ignore−unmatch' --subdirectory-filter 'Library/Formula' -d /Volumes/ramdisk -f moveit

    cd the-target-repro

    git fetch $(brew --repository)

    git merge moveit
  2. samueljohn created this gist Mar 31, 2013.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@

    git checkout -b foo
    git filter-branch --prune-empty --index-filter 'git ls-files --full-name --cached | grep -F --invert-match --file=/tmp/list --color=never | xargs -0 git rm -q --cached --ignore-unmatch ' --subdirectory-filter 'Library/Formula' -d /Volumes/ramdisk -f foo