I have a project of an SNMP agent where the related MIB files (*.smiv2 files) were developed along with it, but now I want them in a separate git repository.
In orde
Full Answer, for future reference
git filter-branch --prune-empty --index-filter 'git ls-files | \ grep -v ".smiv2$" | xargs git rm --cached --ignore-unmatch DoesNotExistInMyProject'