How to delete the older commit history in Azure DevOps git repository, i want to retain the initial commit and latest 6 months commits only.

Aarthy Rajkumar 0 Reputation points
2023-01-22T14:48:39.5233333+00:00

Im using Git Repository in Azure Devops for storing my PBIX files, each file size is around 1GB (approx). The repository size is growing in over the period of time. I wanted to reduce the repository size by deleting the older commit history. I want to retain the initial version of the commit and the last 6 months commit in my branch.

We do have an option of deleting the complete commit history by means of creating the Orphan branch.

Kindly let me know whether we have option for retaining the initial and last 6 months commits in git repository.

Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-01-22T15:01:30.1733333+00:00

    Devops / TFS is not currently supported here on Q&A. The product group for Azure DevOps / TFS actively monitors questions over at https://developercommunity.visualstudio.com/report?space=21&entry=problem
    https://developercommunity.visualstudio.com/report?space=22&entry=problem
    https://azure.microsoft.com/en-in/support/devops/
    --please don't forget to upvote and Accept as answer if the reply is helpful--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.