Work on Two Things at Once
34%
Spin Up a New Branch
Let's say we want to add a power (exponentiation) function to our calculator, but we want to develop it separately from the main code. We'll create a branch for this:
git branch feature/power
This creates a new branch called feature/power. The feature/ prefix is a common naming convention that helps organize branches by their purpose. It's not required - you could name the branch anything - but it makes things easier to manage as projects grow.
Now list the branches:
Learn Git in a Day
Everything you need, nothing you don'tEnroll now to unlock all content and receive all future updates for free.
Unlock now $9.99$7.49Learn More
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
