Skip to content

Instantly share code, notes, and snippets.

@luckydevilru
Created November 9, 2023 13:14
Show Gist options
  • Save luckydevilru/074e0f852e1a959b90f71622e4707c88 to your computer and use it in GitHub Desktop.
Save luckydevilru/074e0f852e1a959b90f71622e4707c88 to your computer and use it in GitHub Desktop.
удалит файл из истории гита
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment