Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 1014 Bytes

04a_activity_create_branch.md

File metadata and controls

16 lines (10 loc) · 1014 Bytes

Activity: Creating a branch with GitHub

Earlier you created an issue about the file you would like to edit. Let's create the branch you will use to edit your file.

Follow these steps to create a new branch in the class repository:

You will need to have collaborator access on the class repository before you can create a branch on GitHub.

  1. Navigate to Code tab of the class repository.
  2. Click the branch dropdown.
  3. Enter the branch name github-username-caption.
  4. Click on your branch name to create the branch.

When you create a new branch on GitHub, you are automatically switched to your branch. Now, any changes you make to the files in the repository will be applied to this new branch.

A word of caution. When you return to the repository or click the top level repository link, notice that GitHub automatically assumes you want to see the items on the default branch. If you want to continue working on a feature branch, you will need to re-select it using the branch dropdown.