How to Untrack Committed Files from Git 🌱

  1. Run the command
    git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch <filepath (or folderpath)>" HEAD
    
  2. Make sure the files are now in your .gitignore before you stage and then commit again

Notes mentioning this note

There are no notes linking to this note.


Here are all the notes in this garden, along with their links, visualized as a graph.