I have mistakenly sent API username and password in bitbucket code, how do i delete that line ? Please help, it’s in public repo.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Mercurial is immutable so undoing this kind of action is quite tricky. One way to do it would be to clone your repo up to the revision before you made this commit, throw the old repo away and replace it with your clone and hope that nobody has pulled from the original repo in the meantime.
This thread discusses this and other approaches in more detail: How do I permanently remove (obliterate) files from history?