Remove file completely from git repository








To remove file dir/secret.txt:
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch dir/secret.txt'  --prune-empty --tag-name-filter cat -- --all

See also




No comments:

Post a Comment