Skip to content

Commit 2c3d44a

Browse files
committed
Save current changes before rewriting history
1 parent b5665a2 commit 2c3d44a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
2424
src/.env
25+
.env

cmd.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
git filter-branch --force --index-filter \
2+
"git rm --cached --ignore-unmatch .env" \
3+
--prune-empty --tag-name-filter cat -- --all

0 commit comments

Comments
 (0)