Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

github remove env file from history

git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD
git push --force
 
PREVIOUS NEXT
Tagged: #github #remove #env #file #history
ADD COMMENT
Topic
Name
7+1 =