Creating branches with Git

Photo by Yancy Min on Unsplash

Creating branches with Git

๐Ÿ’กA branch in git is an independent line of development in the repository. A branch evolves independently to another branches.

ยท

1 min read

๐Ÿ‡ป๐Ÿ‡ช Spanish

1.- Create the stable branch from the main branch. First, you need to stay inside the main branch and then execute git branch <new_branch> command.

git branch stable

2.- See all branches with git branch command. You are inside the branch in green color.

git branch

3.- Enter inside the stable branch with git checkout <branch> command.

git checkout stable

4.- If you want to do the process in one step you need to do:

git checkout -b stable develop

Reference:

git-scm.com/book/es/v2

ย