How can Stash projects fit our project structure


I am evaluating Stash for the use in the company. I ask my self how does stash fit our structure?

We still use CVS. For each project there is a repository and for common code we have a separate project.

For using git I would just convert the existing directory structure.


But, how would I organize a stash project to fit this structure?



220000/          common code

2201234/        All Code for Project A, The Projectfile of the IDE know that files from 2200000/ are needed

2202222/        All Code for Project B




1 answer

0 votes
Bryan Turner Atlassian Team Dec 16, 2014


When using Stash, you'd have the option of mirroring that layout exactly if you wanted to, or you could do something a little different.

If I understand your layout correctly, "project" and "repository" really seem synonymous there ("For each project there is a repository" suggests projects and repositories are one to one). You could produce the same layout in Stash with:

Common Project\
    Repository for common code
Project A\
Repository for project A
Project B\
Repository for project B

If Project A and Project B might grow new repositories that are not common code, this type of layout might make good sense. It leaves room for there to be additional repositories for each project, including additional common code repositories if you started breaking down common code into distinct libraries.

This is the type of layout we use internally, where we have projects and repositories laid out like:

JIRA project\
    JIRA repository
    Repositories for JIRA plugins
Stash project\
    Stash repository
    Repositories for Stash plugins
Confluence project\
    Confluence repository
    Repositories for Confluence plugins

Alternatively, if you just have those three repositories and they're all you're likely to have for a while, you could just create a simple layout like:

Complete Project\
    Repository for common code
    Repository for Project A
    Repository for Project B

Ultimately, it's not really too critical which of these you choose initially. Stash will allow you to move a repository from one project to another, retaining all files, pull requests, comments, etc. The only thing that changes is the clone URL.

Hope this helps,
Bryan Turner
Atlassian Stash

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,960 views 7 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