Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tuify][giti] Protect the main/master branch from being deleted #257

Closed
NadiaIdris opened this issue Dec 4, 2023 · 2 comments
Closed

[tuify][giti] Protect the main/master branch from being deleted #257

NadiaIdris opened this issue Dec 4, 2023 · 2 comments

Comments

@NadiaIdris
Copy link
Contributor

  1. Currently user can delete a main/master branch using giti, I suggest we don't allow user to do that. Any ideas how we could do that?

  2. It's not clear which branch the user is currently on. Prepend current branch with a string "Current: ".

image

@NadiaIdris NadiaIdris changed the title [giti] Protect the main/master branch from being deleted [tuify][giti] Protect the main/master branch from being deleted Dec 4, 2023
@nazmulidris
Copy link
Member

nazmulidris commented Dec 4, 2023

@NadiaIdris - Perhaps this stack overflow thread has some information to detect the default main branch for GitHub

https://stackoverflow.com/a/69649359

Since the default branch is a GitHub thing and not a git thing it makes sense to use gh to get to that information.

@NadiaIdris
Copy link
Contributor Author

Technically users can delete a main development branch. Addressed the user experience in issue #273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants