title: AzureDevOps Git- Remove File/Changes from file
body: <p>I am currently using an AzureDevOps project based on Git. I don't know much about git and find the system anything but easy to understand. Unfortunately, I accidentally uploaded a file that contains sensitive information. I would now like to delete the file. Unfortunately, there doesn't seem to be a consistent and clearly understandable set of instructions. I have already tried a few things, but so far without success. In the meantime, I already have two commits that contain the file. The second is a patch, whatever that does. Currently, the file is only included in a feature branch, but in several commits there. I work on a windows computer, if it relevant.</p>
  <p>I have found this command several times, but I get the following message</p>
  <pre><code>git reset --soft HEAD^1
  fatal: ambiguous argument 'HEAD^1': unknown revision or path not in the working tree.
  </code></pre>