how to untrack file from git code example
Example 1: git untrack file
git rm --cached filename
Example 2: how to uncommit in git
git reset --soft HEAD^
Example 3: git untrack
git rm -r --cached <file>
git rm --cached filename
git reset --soft HEAD^
git rm -r --cached <file>