How to create a new branch from a tag?
If you simply want to create a new branch without immediately changing to it, you could do the following:
git branch newbranch v1.0
I used the following steps to create a new hot fix branch from a Tag.
Syntax
git checkout -b <New Branch Name> <TAG Name>
Steps to do it.
git checkout -b NewBranchName v1.0
- Make changes to pom / release versions
- Stage changes
git commit -m "Update pom versions for Hotfix branch"
- Finally push your newly created branch to remote repository.
git push -u origin NewBranchName
I hope this would help.