GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ABOsalah866 - Overview

@ABOsalah866 ABOsalah866 Follow
More
  • Overview
  • Repositories
  • Projects
  • Packages
  • Stars
@ABOsalah866
ABOsalah866
Follow
View ABOsalah866's full-sized avatar
💭
مصر العربيه

محمد صلاح ABOsalah866

💭
مصر العربيه
Follow
طالب
7 followers · 14 following
More
  • Overview
  • Repositories
  • Projects
  • Packages
  • Stars
ABOsalah866/README.md

Managing branches within your repository

Create new branches for development and delete unused branches directly on GitHub.

Creating a branch

Create a branch for a separate place to work on changes before opening a pull request.

Note

You can only create a branch in a repository to which you have write access.

Creating a branch via the branches overview

  1. On GitHub, navigate to the main page of the repository.

  2. From the file tree view on the left, select the branch dropdown menu, then click View all branches. You can also find the branch dropdown menu at the top of the integrated file editor.

    Screenshot of the file tree view for a repository. A dropdown menu for branches is expanded and outlined in dark orange.

  3. Click New branch.

    Screenshot of the "Branches" page for a repository. A green button, labeled "New branch", is highlighted with an orange outline.

  4. Under "New branch name", type a name for the branch.

  5. Under "Source", choose the branch to base your new branch on.

  6. Click Create new branch.

Creating a branch using the branch dropdown

  1. On GitHub, navigate to the main page of the repository.

  2. Select the branch dropdown menu, in the file tree view or at the top of the integrated file editor.

    Screenshot of the file tree view for a repository. A dropdown menu for branches is outlined in dark orange.

  3. Optionally, to create the new branch from a branch other than the default branch of the repository, click another branch. Then, select the branch dropdown menu again.

  4. In the "Find or create a branch..." text field, type a unique name for your new branch, then click Create branch.

    Screenshot of the branch selector dropdown menu. "Create branch: new-branch" is highlighted with an orange outline.

Creating a branch for an issue

You can create a branch to work on an issue directly from the issue page. See Creating a branch to work on an issue.

Deleting a branch

Delete branches that you no longer need, such as branches for merged or closed work.

You can have head branches automatically deleted after pull requests are merged in your repository. See Managing the automatic deletion of branches.

Note

If the branch you want to delete is the repository's default branch, choose a new default branch first. See Changing the default branch.

If the branch is associated with an open pull request, merge or close the pull request before deleting the branch.

  1. On GitHub, navigate to the main page of the repository.

  2. From the file tree view on the left, select the branch dropdown menu, then click View all branches. You can also find the branch dropdown menu at the top of the integrated file editor.

    Screenshot of the file tree view for a repository. A dropdown menu for branches is expanded and outlined in dark orange.

  3. Next to the branch that you want to delete, click .

    Screenshot of a branch in the branch list. A trash icon is highlighted with an orange outline.

  4. If the branch is associated with at least one open pull request, deleting the branch closes the pull requests. Read the warning, then click Delete.

If you delete a head branch after its pull request has been merged, GitHub checks for any open pull requests in the same repository that specify the deleted branch as their base branch. GitHub automatically updates any such pull requests, changing their base branch to the merged pull request's base branch. See Branches.

Further reading

  • Branches
  • Viewing branches in your repository
  • Deleting and restoring branches in a pull request

Pinned Loading

  1. ABOsalah866 ABOsalah866 Public

    Config files for my GitHub profile.

    1

  2. super-pancake super-pancake Public template

    1

  3. opensource.guide opensource.guide Public

    Forked from github/opensource.guide

    📚 Community guides for open source creators

    HTML 1

  4. fingerprinting-guidance fingerprinting-guidance Public

    Forked from w3c/fingerprinting-guidance

    What is browser fingerprinting and how should specification authors address it.

    HTML 1

  5. starter-workflows starter-workflows Public

    Forked from actions/starter-workflows

    Accelerating new GitHub Actions workflows

    TypeScript 1

  6. one-api one-api Public

    Forked from songquanpeng/one-api

    LLM API 管理 & 分发系统,支持 OpenAI、Azure、Anthropic Claude、Google Gemini、DeepSeek、字节豆包、ChatGLM、文心一言、讯飞星火、通义千问、360 智脑、腾讯混元等主流模型,统一 API 适配,可用于 key 管理与二次分发。单可执行文件,提供 Docker 镜像,一键部署,开箱即用。LLM API management & k…

    JavaScript 1

Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.

Uh oh!

There was an error while loading. Please reload this page.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.