How to Give build on DEV

100rabhcsmc

Saurabh Chavan

Posted on January 15, 2024

How to Give build on DEV

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
Enter fullscreen mode Exit fullscreen mode

create new branch from the production

git checkout -b branch_name
Enter fullscreen mode Exit fullscreen mode

push your all code in the new branch

git add .

git commit -m "New commit"

git push origin new_branch

Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

if there is confict then resolve it and push code otherwise
push the code

git commit -m "conflict resolve"

git push origin develope

Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode
πŸ’– πŸ’ͺ πŸ™… 🚩
100rabhcsmc
Saurabh Chavan

Posted on January 15, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related