About 24,400,000 results
Open links in new tab
  1. Creating and deleting branches within your repository

    Select the branch dropdown menu and click a branch. Click Create branch. Creating a branch using the branch dropdown. On GitHub, navigate to the main page of the repository. Select the branch dropdown menu, in the file tree view or at the top of the integrated file editor.

  2. How to Create a New Branch in Git? - GeeksforGeeks

    May 20, 2024 · To create a new branch from a remote branch, first, fetch the remote branches, then create and track a new branch based on the remote one. Replace new-branch-name with your desired branch name and remote-branch-name with the name of the remote branch.

  3. How to Create a New Branch in GitHub - How-To Geek

    Jul 31, 2021 · When you create a new repository in GitHub, there's one branch by default---the "main" branch (previously called "master"). This, as the name implies, is the main container …

  4. Git - Basic Branching and Merging

    Let’s go through a simple example of branching and merging with a workflow that you might use in the real world. You’ll follow these steps: Do some work on a website. Create a branch for a new user story you’re working on. Do some work in that branch. At this stage, you’ll receive a call that another issue is critical and you need a hotfix.

  5. Git Branch - W3Schools

    In Git, a branch is like a separate workspace where you can make changes and try new ideas without affecting the main project. Think of it as a "parallel universe" for your code. Why Use Branches? Branches let you work on different parts of a project, like new features or bug fixes, without interfering with the main branch.

  6. How to Create a New Git Branch: A Step-by-Step Guide

    To create a new branch, use the following command: Replace <branch-name> with the name of your new branch. For example, to create a branch for a new feature called feature-login, you would run: This command creates a new branch based on the branch you’re currently on (usually main), but it does not switch you to the new branch immediately.

  7. Creating Branches in GitHub: A Step-by-Step Guide - Towards Dev

    Mar 21, 2023 · In this Article, we will walk through the process of creating branches using GitHub, a popular web-based hosting service for Git repositories. Before you start creating branches, make sure you have a GitHub repository set up. If you don’t have one yet, follow these steps to create a new repository:

  8. git - How to create a branch in GitHub - Stack Overflow

    Oct 28, 2016 · When you create a branch in github, it's in the github remote. You need to fetch the branch from that remote, to your local, and tell your local to track that branch. This assumes you want the branch_name on the remote to be the same on your local. A branch is a lightweight thing in git, it is just a sticky note pointing to a commit.

  9. How to Create a Branch in Git - Make Tech Easier

    Apr 16, 2025 · In this write-up, we’ll discuss different methods of creating git branches locally and remotely. Branches in Git let you work on different tasks without affecting the main code. You can create a branch to add a feature, fix a bug, or test something new, all while keeping the main project safe and stable.

  10. Managing branches in GitHub Desktop

    You can use GitHub Desktop to create a new branch off of an existing branch in your repository so you can safely experiment with changes.

  11. Some results have been removed
Refresh