Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 384 Bytes

git-rm-cached.md

File metadata and controls

17 lines (10 loc) · 384 Bytes

Remove gitignored files from remote

This will stash a specific file

git rm -r --cached {{DIRECTORY_NAME}}

  • DIRECTORY_NAME: Name of file/directory, which is added to gitignore and needs to be removed from remote also

Example:

git rm -r --cached node_modules

Related