git how to remove git code example Example 1: remove git from project rm -rf .git* Example 2: git rm cached $ git rm --cached filename