How to make a Hotfix?

In order to do a hotfix in master it is necessary to create a hotfix branch to never destabilize master.

start:hotfix - Starting hotfix branch

checkout master

git checkout master

Run:

cells start [--branchName hotfix/tutorial]
[14:23:42] Execution contexts: [ recipe, master ]
[14:23:42] Starting flow: [ start ], steps: [ start, setVersion, push ]
...

It is not necessary to enter targetBranch parameter because from the master branch, the only branch that can be started is hotfix.

If branchName parameter is not set, you will be asked for the name you want to give the branch:

? Write the name of the new hotfix (hotfix/ is already appended) tutorial (best without spaces)

Once the execution is finished check that you are in the branch that you just created:

➜ pisco-git git: (hotfix / tutorial) git branch -l
  develop
* hotfix / tutorial
  master

Conclusions:

finish:hotfix - Delivery code from hotfix to master

Checkout hotfix branch

git checkout hotfix/tutorial

Run:

cells finish
[14:24:52] Execution contexts: [ recipe, hotfix ]
[14:24:52] Starting flow: [ finish ], steps: [ merge, validate, setVersion, finish, publish ]
....

Conclusions:

Common Problems:

[See the section resolving conflicts using the git command line] (#-gitresolve-resolve-conflicts-using-line-of-git-command)

Solve the tests so they do not give error.