activeloopai / activeloopai/deeplake

[FEATURE] Delete branch

未关闭
#2,341 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
C++
星标
9.2k
派生
722
PR 合并指标
30 天内没有已合并 PR

描述

## 🚨🚨 Feature Request
It would be useful to delete unused or corrupted branches, or at least be able to rename them.

- [ ] Related to an existing [Issue](../issues)
- [X ] A new implementation (Improvement, Extension)

### Is your feature request related to a problem?

Kind of. Some times I need to discard branches because corrupted or unmergeable (My datasets are quite complex and I still need to dedicate time to reproduce the problems in a simple way in order to open an issue). For instance, I wanted to have only one 'dev' branch where to work and add new data but after the first merge with 'main' it got corrupted (I think because I closed the interpreter after doing some modifications without committing). So we had to move to one branch per person making modifications but that also fail after some merge problems and now we are simply inventing names for each new change with a proliferation of dead branches.

### If your feature will improve `HUB`

...

### Description of the possible solution

To implement a method on the Dataset class that can be called like `ds.delete_branch('branch_name')`

### An alternative solution to the problem can look like

If there is a technical motivation for not having a `delete_branch()` method, a `rename_branch()` can also be useful to rename dead branches even if it doesn't solve the proliferation of unused branches

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。