activeloopai / activeloopai/deeplake

[FEATURE] Delete branch

Abierto
#2,341 2 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
C++
Estrellas
9.2k
Forks
722
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.