activeloopai / activeloopai/deeplake

[FEATURE] Delete branch

Đang mở
#2,341 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
C++
Star
9.2k
Fork
722
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 🚨🚨 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.