How to remove origin from git repository

Fairly straightforward:

git remote rm origin

As for the filter-branch question – just add --prune-empty to your filter branch command and it’ll remove any revision that doesn’t actually contain any changes in your resulting repo:

git filter-branch --prune-empty --subdirectory-filter path/to/subtree HEAD

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)