Skip to content

Instantly share code, notes, and snippets.

@k1000
k1000 / git-rm-from-history.sh
Created August 17, 2011 09:04
permanently delete files/folders from your git repository
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0