https://github.com/developer-sujon/remove-env-git-history
https://github.com/developer-sujon/remove-env-git-history
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/developer-sujon/remove-env-git-history
- Owner: developer-sujon
- Created: 2024-07-28T18:06:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T18:09:55.000Z (almost 2 years ago)
- Last Synced: 2025-06-23T05:41:14.634Z (12 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
echo '.env' >> .gitignore
git rm -r --cached .env
git add .gitignore
git commit -m 'untracking .env'
git push origin master
delete all commits
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD
git push --force