Skip to content

Instantly share code, notes, and snippets.

View pragmatrix's full-sized avatar

Armin pragmatrix

View GitHub Profile
#!/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.
# Example: git-delete-history path1 path2
if [ $# -eq 0 ]; then