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 vote
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
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...

22,769 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