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
git rm -r --cached node_modules
This will stash a specific file
git rm -r --cached {{DIRECTORY_NAME}}
git rm -r --cached node_modules