Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-hykin committed Oct 28, 2022
1 parent b0d4098 commit b4bb821
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion settings/during_start/094_000_jeffs_git_shortcuts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,12 @@ git_delete_large_file () {
exit 0
fi

git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch '$filepath'" HEAD
oldest_commit_with_file="$(git log --all --pretty=format:%H -- "$filepath" | tail -n 1)"

echo "$oldest_commit_with_file"

rm -rf .git/refs/original/
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch '$filepath'" "$oldest_commit_with_file"..HEAD
echo
echo "Now you need to destroy everyone else's progress by force pushing if you want remote to have the fix"
echo
Expand Down

0 comments on commit b4bb821

Please sign in to comment.