1

Right now, I'm exploring and getting familiar with the Gitea interface.
I must be blind since I've done this before with GitHub, GitLab, CodeStar, and many more.
I feel crazy for asking this but, where is the delete branch in the website?

enter image description here

I'm asking because if ever permissions were restricted or process-gates were setup,
I'd like to be able to cleanup after myself of no longer needed testing setups and broken branches. I've looked around for answers and I've only found:

  1. freeCodeCamp's basic git article suggesting git branch -d <branch>
  2. [GitHub > Issue] On Deleting Branch Completely which isn't my issue
  3. Gitea.Docs search returning "Delete a package" instead

I understand that there might not be a way, but I haven't found any discussion to reference regarding this. So I thought I'd ask the SO community to see if we find anything we can share here.
Thanks for reading this!

enter image description here

Zach
  • 539
  • 1
  • 4
  • 22

1 Answers1

1

As noted in "How do I delete a Git branch locally and remotely?", a git branch -d <branch> would only delete the branch locally.
A git push --delete <branch> would delete it on Gitea.

That is what I would use whenever a UI does not readily show the option I need: use command-line and push.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I just wanted to see if there was any confirmation on Gitea not having a web-version of this and/or see if this was something I missed on their roadmap ahead or even something they were considering or noticed. – Zach May 30 '23 at 17:28
  • @Zach I understand. So far, I haven't seen that feature (planned or otherwise) on GitLab side. – VonC May 30 '23 at 17:39