Where to create a branch: Stash or local?

Hi there..

I am new to Stash and have only limited git experience by using it for my local development version control. I have introduced Stash in our team so we can start doing version control of our scripts. 

I plan to use either the Feature Branch workflow, or the Git Workflow methodology. 

Main question I have is when creating a branch to work on a feature (in any of the workflows) where do you guys create the branch normally? 

  • In your local repo? If so - how do your team mates/colleagues now about this one (do you push back the clean branch?)
  • In the central repo? If so - using stash web or git command? SourceTree maybe? (and then pull that one down locally?)

 

Newby questions all the way smile

G.

 

2 answers

This widget could not be displayed.

I usually either create the branch on the web interface or locally just before I create the first commit. (And push the branch together with the first commit.) It mainly depends on what is in front of me when I start working on something.

If it is important for your team to see the empty branches as soon as they are created (for example as a signal that somebody has started working on a task), it is slightly better to agree on creating all branches on the web interface.

This widget could not be displayed.
Andrew Er Atlassian Team Nov 13, 2014

Hi Geoffrey, 

Thanks in taking an interest in using Stash.

Main question I have is when creating a branch to work on a feature (in any of the workflows) where do you guys create the branch normally? 

Regarding to your question, generally Git uses a central repository to serve as the single point-of-entry for all changes to the project. It gives every developer their own local copy of the entire project which allow each developer to work independently of all other changes to a project. Also, Git branches are designed to be a fail-safe mechanism for integrating code and sharing changes between repositories. 

 

In your case, you may want to look at this documentation on the guideline of a feature branch workflow. 

If you are in need of assistance, you could also open a Support Ticket as well.

Good luck!

 

Cheers, 

Andrew Er

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,202 views 8 10
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