Open genieai-vikas opened 1 month ago
You can grep this "remote rejected" from github issues and see that technically the valid way is to create a new repo and push mirror clone edited with BFG to this new repo. Github and Bitbucket do have those internal refs and don't want you to change them.
I want to remove a sensitive file mongodb.key from my GitHub repository, including its history. I followed these steps:
However, when I try to push, I’m encountering the following errors:
It seems the pull request (PR) references are causing issues. How can I remove the mongodb.key file from the repository, including PRs, and successfully push my changes? What is the correct approach for this?
Thanks in advance!