Create and delete branches
Now you can create and delete branches from GitHub.com. Create a branch In your repository’s branch selector, just start typing a new branch name. We’ll give you the option to…
Now you can create and delete branches from GitHub.com.
Create a branch
In your repository’s branch selector, just start typing a new branch name. We’ll give you the option to create a new branch:
We’ll branch off of your current context. For example, if you’re on the bugfix
branch, we’ll create a new branch from bugfix
instead of master
. Looking at a commit or a tag instead? We’ll branch your code from that specific revision.
Delete a branch
You’ll also see a delete button in your repository’s Branches page:
As an added bonus, we’ll also give you a link to the branch’s Pull Request, if it has one.
Collaborate without the terminal
For small changes like documentation fixes, typos, or if you’re just a walking software compiler, you can get a lot done in your browser without needing to clone the entire repository to your computer:
- Create a new branch from the new-and-improved branch selector
- Edit a file with your changes (or create a new file)
- Send a Pull Request and get it merged in one click
- Delete the branch from the Pull Request or, as of today, delete it from your Branches page
- And if you discover you didn’t want to delete that branch quite yet, yesterday we added the ability to restore a deleted branch
Happy branching!
Written by
Related posts
Celebrating the GitHub Awards 2024 recipients 🎉
The GitHub Awards celebrates the outstanding contributions and achievements in the developer community by honoring individuals, projects, and organizations for creating an outsized positive impact on the community.
New from Universe 2024: Get the latest previews and releases
Find out how we’re evolving GitHub and GitHub Copilot—and get access to the latest previews and GA releases.
Bringing developer choice to Copilot with Anthropic’s Claude 3.5 Sonnet, Google’s Gemini 1.5 Pro, and OpenAI’s o1-preview
At GitHub Universe, we announced Anthropic’s Claude 3.5 Sonnet, Google’s Gemini 1.5 Pro, and OpenAI’s o1-preview and o1-mini are coming to GitHub Copilot—bringing a new level of choice to every developer.