in VSO, I have tried push the code without taking latest, when did that, my code got pushed locally. After pulling the latest code when i tried to push again to Central repository I am getting the below error. I had credentials in few files, after removing it also I'm getting the same error. Any help would be much appreciated, Thanks in Advance...!!!
If these are valid credentials, even for non-production resources, you must remove them from Git’s branch history by resetting your branch or squashing all commits. See https://aka.ms/1escredscan for instructions. Please report any false positives to 1ESSecTools@microsoft.com.
NOTE: It is not enough to remove the secrets and push another change. You must reset your branch according to the instructions.
If this is a false positive, you can bypass credential scanning (for this push alone) by running these commands, assuming that you have no staged changes:
git commit -m "**DISABLE_SECRET_SCANNING**" --allow-empty`
git push
Alternatively, see https://aka.ms/1escredscan for instructions on how to use the hash values emitted above in a suppressions file to suppress false positives.) failed to push some refs to 'https://DevRepository'
Error encountered while pushing to the remote repository: rejected Dev -> Dev (VS403654: The push was rejected because it might contain credentials or other secrets.