Re: How to remove a ref from a repository



On Jul 13, 2015 6:21 AM, "Leandro Santiago" <leandrosansilva gmail com> wrote:
>
> Is it possible to remove or delete a ref (and all possible files
> belonging to it) from a repository (either bare or archive-z2)? My
> first idea was removing refs/heads/<ref/name> and then running ostree
> prune (I haven't tested it yet!) but it doesn't sound really safe...

Yeah, deleting a ref is easy. Run ostree refs --delete theref. Then run ostree prune --refs-only to clean up any commits that are no longer descendants of a ref. I might have the prune option wrong as I'm not on an ostree system right now. There's also a dry run option if you just want to see what happens.

Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]