Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

//how to remove all file/dir already commited from git before pushing

//how to remove all file/dir already commited from git
git rm -r --cached <file/dir>

//how to remove node_modules dir commited before pushing
git rm -r --cached node_modules

 
PREVIOUS NEXT
Tagged: #remove #commited #git #pushing
ADD COMMENT
Topic
Name
6+3 =