This wikiHow shows you how to delete a branch of code from your GitHub repository. Doing this will allow you to manage the amount of branches for a particular line of code.

Steps

  1. 1
    Log in to your GitHub account. If you haven’t done so, open your web browser and go to https://github.com to log in.
  2. 2
    Open the main page of your repository. To do this, click the purple icon in the top-right corner of the screen, select your profile, and click on the name of the repository with the branch you want to delete listed in the pane on the left side of the screen.
  3. 3
    Click on the [number] Branches tab. This is along the menu on top of the repository page.[1]
  4. 4

About This Article

wikiHow Staff
Co-authored by:
wikiHow Staff Writer
This article was co-authored by wikiHow Staff. Our trained team of editors and researchers validate articles for accuracy and comprehensiveness. wikiHow's Content Management Team carefully monitors the work from our editorial staff to ensure that each article is backed by trusted research and meets our high quality standards. This article has been viewed 20,695 times.
How helpful is this?
Co-authors: 3
Updated: October 21, 2021
Views: 20,695
Categories: Programming