without any add on create development, staging environment

I am not sure if I am doing right or not. I want to create development, staging and production environment for my repository.

We got different hosting server for staging and live.

I am thinking to create branch staging and development branch from master.

So i can clone only staging branch to my staging server.

I am thinking to keep these two branch permently. 

Is this right? Also how feature branch will work in this case.

Hope to hear from anyone soon.

 

1 answer

0 vote

Hi Ashish, there are different types of workflows; having a branch for each environment is common but there are some risks (it can originate conflicts between the different branches). In many cases, it's better to have just one branch in all of them, as you should never have commits in production that are not in staging. The history should be linear, so when you have a change in production, you know this change is present in all the previous environments.

You can read more information about different types of workflows (including theFeature Branch workflow) at Comparing workflows.

There's also a discussion about that at Git with development staging and production branches, it might interest you.

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

24,752 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you