【问题标题】:Permanently delete git repository with all its content without project id永久删除 git 存储库及其所有没有项目 ID 的内容
【发布时间】:2020-01-31 09:56:09
【问题描述】:

有什么方法可以在不需要项目的情况下永久删除 git 存储库。

我已经删除了这些项目,它们不再在数据库中。 但是 git 存储库仍然是。如何删除这些

尤其是存储所有数据的 tbl_content。

【问题讨论】:

    标签: git azure-devops-server-2019 azure-repos


    【解决方案1】:

    有一个清理作业可以删除剩余的内容。

    EXEC prc_CleanupDeletedFileContent 1
    # You may have to run the following command multiple times, the last
    # parameter is the batch size, if there are more items to prune than the 
    # passed in number, you will have to run it multiple times
    EXEC prc_DeleteUnusedFiles 1, 0, 100000
    

    https://jessehouwing.net/tfs-clean-up-your-project-collection/

    【讨论】:

    • 该链接描述了在运行存储过程之前从回收站中删除 repo 的 api 调用。回收站不能清空,因为如果没有项目了。我尝试运行存储过程,但没有任何反应。
    • 这对我来说听起来像是一个错误,可能需要致电支持来修复。
    猜你喜欢
    • 2021-12-30
    • 2012-11-28
    • 1970-01-01
    • 2015-09-18
    • 1970-01-01
    • 2016-08-27
    • 2012-07-17
    • 2013-06-19
    • 1970-01-01
    相关资源
    最近更新 更多