https://github.com/developer-sujon/remove-env-git-history
https://github.com/developer-sujon/remove-env-git-history
Last synced: 2 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 (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-28T18:09:55.000Z (10 months ago)
- Last Synced: 2025-01-23T11:20:01.059Z (4 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 masterdelete all commits
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD
git push --force