1. Home
  2. Git
  3. Remove folder
#git#remove

This command will stop git from tracking a directory but it will not delete the files from the file system. -r flag (recursive) instructs git to remove all files in the direcory.

git rm --cached somedirecory/ -r
copy
Full Git cheatsheet
Sitemap Git repository