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 摘要。