So, some garbage was entered into the Azure DevOps Git.

There is no way to properly undo the last commit or you have several commits you want to kill and go back to a valid and healthy point.


  1. Go to the commit you want to go back to in the pipelines
  1. Get the hash number of that commit
  1. Go to Git terminal and add command with that hash code
    1. git reset –hard 6d53074ef1023a99a24312b67b081fcb3837d686
      1. this will delete the local changes and get you back to the proper healthy code
    2. git push origin -f
      1. this will push the command to reset all the code from the proper healthy code and forward
      2. this will get you back to the latest proper commit