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

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.

0 votes
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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

680 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot