What are the differences between arc feature [branch-name]
and git branch [branch-name]
?
They both seem to create a new branch.
Git makes no technical distinction between the main branch and feature branches, so developers can edit, stage, and commit changes to a feature branch. In addition, feature branches can (and should) be pushed to the central repository.
The core idea behind the Feature Branch Workflow is that all feature development should take place in a dedicated branch instead of the master branch. This encapsulation makes it easy for multiple developers to work on a particular feature without disturbing the main codebase.
A release branch is created from develop. Feature branches are created from develop. When a feature is complete it is merged into the develop branch. When the release branch is done it is merged into develop and main.
What is a feature branch? A feature branch is a copy of the main codebase where an individual or team of software developers can work on a new feature until it is complete. With many engineers working in the same code-base, it's important to have a strategy for how individuals work together.
arc feature [branch-name]
will:
git branch [branch-name]
will only create a branch based from the commit you currently have checked out.
If you are using the Arcanist workflow, it is strongly recommended to use arc feature
for your branches as this tends to lend itself well to the followup commands of arc diff
and arc land
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With