It is IMPORTANT to note that you MUST COMMIT ALL PREVIOUS CHANGES BEFOE CONTINUING
-
Remove everything from Local Repo
git rm -r --cached .
or if you are untracking a specific file(s)git rm -r --cached name_of_file
-
Add back all untracked files you need
git add .
orgit add name_of_file_with_fix
-
Commit Changes
git commit -m "untrack name_of_file fix"
-
Push changes to remote repo
git push
If you have any questions, do not hesitate to contact me on social media.
Happy coding 😄, --Maya
Thx, this is so helpful!!!<3<3<3