- git installed and corresponding git project (let’s call it „xyz“) is cloned to your local machine
- For instance, we assume this version tag exists: v1.14.0 and want create v.1.14.1 based on a specific commit „0cffa6f0“
-
in shell, change to xyz project folder
-
be sure to be up-to-date, execute
git pull
-
checkout existing v1.14.0, create a temp. branch v1.14.x:
git checkout -b v1.14.x v1.14.0
-
merge existing commit into current branch:
git merge 0cffa6f0
-
create new tag on this:
git tag v1.14.1
-
go back to master:
git checkout master
-
push the new tag to repo:
git push --tags