ARTIFACTORY: How to keep you Git LFS repositories clean

ARTIFACTORY: How to keep you Git LFS repositories clean

AuthorFullName__c
Nandini Das
articleNumber
000005335
ft:sourceType
Salesforce
FirstPublishedDate
2022-07-19T06:01:33Z
lastModifiedDate
2023-01-22T11:06:24Z
VersionNumber
2

Artifactory supports repos for Git Large File Storage (Git LFS).

With these repositories set, you may allow for files sent to GitHub to be stored on Artifactory to improve performance (more details).

However, if a file is deleted from GitHub that has been stored in Artifactory, it is not automatically deleted.

To clean up files from Artifactory that no longer exist in Github, you should use the JFrog CLI, which makes this process simple and clean.

With the CLI configured to your server, you simply need to run the following command and your repositories will be cleaned.

jfrog rt glc

For more details, please read our official documentation.