I'm facing a problem on a git ..
I did accidentally commit a piece of API information to the git remote repository:
I want to remove API information but keep "SKIP_PREFLIGHT_CHECK=true
" in the file.
I did
I tried to delete the previous commit by using a
git reset --hard <id>
but that's not working ..
My default branch is develop
.
But now I'm working on feature
branch.
I'm not yet merging the feature to the dev
branch.
In this situation, what's the best option for me?
This is a personal project.
I Want
What I want to the thing is to remove only API information and keep .env
. file in the feature branch (delete the history)