how to untrack files in git before commit code example
Example 1: git untrack file
git rm --cached filename
Example 2: how to unadd gitr file
git reset HEAD myfile.txt
Example 3: git untrack file
git rm -r --cached
git rm --cached filename
git reset HEAD myfile.txt
git rm -r --cached