mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
5 lines
213 B
Bash
Executable file
5 lines
213 B
Bash
Executable file
#!/usr/bin/env bash
|
|
file="$1"
|
|
test -z "$file" && echo "file required." 1>&2 && exit 1
|
|
git filter-branch -f --index-filter "git rm -r --cached '$file' --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all
|