IAC - Version Control
GITHUB
GITHUB
  • Background
  • Setting up GitHub
  • Windows
    • Working with a cloned repo
    • Populating a repo from local files
    • Integrate VSCode
  • Linux
    • Using SSH
    • GH Command Line
  • The Basics
    • Forks
    • Logs
    • Undoing Local Changes
  • Larger Projects
    • Setting up a repo
    • Creating my Branch Architecture Locally
    • Creating a Feature Branch
    • Creating my Branch Architecture on GitHub
    • Merging the changes from GitHub on my local machine
    • Merging the changes from my local machine to GitHub
    • Sync the branches in GitHub
  • Finally
Powered by GitBook
On this page
  1. Larger Projects

Creating a Feature Branch

PreviousCreating my Branch Architecture LocallyNextCreating my Branch Architecture on GitHub

As discussed in the theory notes, we should be doing commits on code changes on dedicated feature branches. When they are looking good, we can merge them to dev or test.

I am going to add initial pages to my repo. This time, I’m going to use an option -b to create and change branches in a single command.

And I verify I am on the right branch.

Next, I add in some files, and test them to ensure they basically work. After, I check where I am with git status.

I stage and commit these files to the initial_pages branch.

If I have done something stupid and broken the application, it doesn’t matter! The permanent branches, main, test and dev do not utilize this new code, it is only on the specific feature branch.