remove commit from reposirtory git code example Example 1: remove git from project rm -rf .git* Example 2: ubuntu remove git from folder rm -rf .git