In this tutorial we will be going to learn that how can we create new branch from the production branch and all the latest code will be push on our new branch and then will merge this command in the develope branch.All this done then will create tag and push all the code to the tag and do build from the jenking
Go to the production branch
git checkout production
create new branch from the production
git checkout -b branch_name
push your all code in the new branch
git add .
git commit -m "New commit"
git push origin new_branch
Wooh your new branch is good to go on the dev
Now its time to mergeing
go to the develop branch
git checkout develope
git pull
git merge new_branchName
if there is confict then resolve it and push code otherwise
push the code
git commit -m "conflict resolve"
git push origin develope
Its time to create tag
tag must be unique like (2023.0108_v3 year.dateMonth_version)
git tag tag_name
git push origin tag_name
Top comments (0)