Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the differences between arc feature [branch-name] and git branch [branch-name]?

What are the differences between arc feature [branch-name] and git branch [branch-name]?

They both seem to create a new branch.

like image 857
user4975679 Avatar asked Aug 20 '15 20:08

user4975679


People also ask

What is the difference between a branch and feature branch in Git?

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.

What is Git feature branch?

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.

What is difference between release and feature branch?

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 the feature branch?

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.


1 Answers

arc feature [branch-name] will:

  • Create a branch based from the commit you currently have checked out,
  • Set the tracking to the branch you have checked out (this will be to track the local branch, not the branch on your remote),
  • Check out that branch.

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.

like image 197
CEPA Avatar answered Sep 18 '22 18:09

CEPA