untrack a folder git code example
Example 1: remove a folder from git tracking
git rm -r --cached path_to_your_folder/
Example 2: git untrack file
git rm --cached filename
git rm -r --cached path_to_your_folder/
git rm --cached filename