How long does VSTS keep a branch after it is deleted?

There is a possibility to delete a branch, and as soon as it is deleted, we can restore it using the search, using the exact match.

how long does the branch remain and can be restored after its removal?

+4
source share
1 answer

In Git, the branch tag is removed, but the commit will remain. VSTS does not perform garbage collection on the server side, and commits will remain there and will be restored. The only way to really destroy the branch is to create a local clone, delete the repository on VSTS, create a new bare repository in VSTS (you can use the same name) and paste the contents again.

TFVC , destroy (tf destroy $/Project/Branch/To/Destroy), . , .

+3

Source: https://habr.com/ru/post/1695461/


All Articles