git remove tracked changes code example
Example 1: git remove tracked files without deleting
git rm --cached -r mydirectory
Example 2: how to undo git clean -fd command
git clean -fdx
Example 3: how to undo git clean -fd command
git clean -fdxn