-3

I am using azure devops Git repository.

I have a specific file which needs to be deleted from all the previous commits(history) made to the branch.

4c74356b41
  • 69,186
  • 6
  • 100
  • 141

1 Answers1

1

Currently, this operation cannot be implemented by rest api or ui in Azure devops.

As one contributor mentioned in this case: Each commit in a git repository builds upon previous commits and depends upon the contents of that commit. So rewriting even one commit with a tiny change somewhere in the history means changes to all the commits that come after it. So "Delete a specific file from VSTS git history" this operation is not very reasonable

If you really want to do this, you can try the BFG Repo-Cleaner tool.For details please refer to the case mentioned in the comment.

4c74356b41
  • 69,186
  • 6
  • 100
  • 141
Hugh Lin
  • 17,829
  • 2
  • 21
  • 25