I need help understanding drive partitions needed for Stash and GIt


I am not quit sure how stash and git work together, I have installed GIT on the server and postgres and located the data folder for postgres on a separate partition. It is my understanding that the Stash home directory will need a separate partition as well, so here is where I am confused I was thinking I would still need another partition to create my GIT repos on. Is that correct? So if you are following me C:\ partition  is installation,   D: partition is data for Postgres, E: partition is for Stash Home directory and F: partition is for Repos?





1 answer

1 accepted

0 votes
Answer accepted

Hi Chad,

I don't believe you need to create a separate partition for your Stash home directory. It can sit anywhere on your disk provided it is accessible to the Stash application. Your repositories will be created and managed by Stash in a subdirectory of your Stash home directory (under STASH_HOME/shared/data/repositories to be precise).

Can I ask where you saw a reference asking to create separate partitions?



I am confused, do the git repos have to sit under the Stash Home dir? Am I never using git-bash to create and clone repos or am I just going thru stash to do that? Sorry I am having a hard time understanding how stash works with GIT as I am use to using git directly, although by no means am I an expert. https://confluence.atlassian.com/display/STASH/Stash+home+directory

Hi again Chad, Stash is a git server, and hosts your git repositories for you. It manages them on disk so you should never have to create them yourself or interact with them directly on disk. Instead you create repositories via the Stash web UI, and then push, pull and clone those repositories via Stash's HTTP or SSH front-ends. Cloning the repository from Stash creates your own local copy of the repository that you can interact with using git-bash or a tool like SourceTree (http://sourcetreeapp.com/). You can then modify this repository and push it back to Stash. If you're reasonably new to git, it might be worth reading through our workflow documentation (https://www.atlassian.com/git/tutorials/comparing-workflows/centralized-workflow) to get your head around how developers typically interact with git repositories. Hope this helps! cheers, Tim

Thank You for the explanation of how stash works with GIT, it helped and much appreciated.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

250 views 0 12
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