Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete env from git

Step 1 - Run 'git rm -r --cached .env'

Step 2 - Run 'git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD'

Step 3 - Run 'git push --force'
Source by daily-dev-https #
 
PREVIOUS NEXT
Tagged: #delete #env #git
ADD COMMENT
Topic
Name
5+4 =