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.- 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:
ย