It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it good practice to create branches per task? Edited

We're working in team with 5 to 6 people. All we are doing is creating a new branch on every new task and later merge it with development branch. Sometimes it's hard to mange locally even! I would like to know are we following best practices? or creating a branch per user is a good approach?


3 answers

Your current workflow sounds good. A branch per user might not be the best approach given you may collaborate with other team members on a feature; that could get complicated using a branch-per-user workflow.

You may find that this article about Feature Branch Workflow validates your current practices.

I would vow for the feature branch workflow. Has worked pretty well for us

HI @Divyang

I would say..branching mechanism is one of the best ways to use GIT.

Using branching the developers can work independently on their local branch, once done they can push the code to the remote repo so there is no dependency and while merging also you can merge a single branch to master/dev branch.

Multiple teams can work on a single repository at a same time.

Hi @Yogesh Mude, thanks for prompt reply! Yes agree with you, but what if we create branches per user? for instance, we have 5 team members in a team, I would create 5 branches and commit their code into it, once they done with one task, they would create a pull request to the development branch. Is there bad in this approach? 

Per-task is generally a good idea along the same lines as a feature branch workflow.

If it’s too cumbersome, maybe do branches by story?

What about your current process seems troublesome?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

957 views 1 16
Read article

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