Hotfix Branches (Standar)

You are here:
Estimated reading time: < 1 min

Find & Replace with yours:

  • Fixed severe production problem →Description.
  • M.m.f → Version.

Create Branch

git checkout master;git pull origin master;
git checkout master;git checkout -b hotfix-M.m.f master;

Update “M.m” to /README.md.

git add readme.md;
git commit -m "Bumped version number to M.m.f"

Add & Commit Files Changes

git commit add path/to/file.ext;
git commit add path/to/file2.ext;
git commit -m "Fixed severe production problem"

Finish Branch

git commit -m "Fixed severe production problem";git checkout master;
git merge --no-ff hotfix-M.m.f -m "rel M.m.f";
git tag -a M.m.f -m "Fixed severe production problem";
git checkout develop;git merge --no-ff hotfix-M.m.f -m "rel M.m.f";
git branch -d hotfix-M.m.f;
git push origin develop;git push origin master;git push origin M.m.f;

Was this article helpful?
Dislike 0
Views: 147