With Stash, can you use an alternate Git repository (remote server)?

We are looking at Stash and were wondering if our Git repositories are managed and / or on remote server, is it possible to integrate without altering remote Git server?

Thanks

1 answer

Hi Matt,

How do you mean 'integrate' exactly?

Are you talking about hosting the Git repositories on an NFS mount? Stash keeps the Git directories at $STASH_HOME/data/repositories and that can be mounted elsewhere if required. It's important that Stash is the only one updating those repositories though.

Do you mean integrate with something like, say, Gitolite? Stash needs to host the repositories, and if you're pushing to the remote server then Stash won't be able to react to updates and our data will be effectively corrupted.

You can certainly create a read-only mirror of a repository and keep them in sync using standard Git push/pull, but it's very dangerous to have the same repository being modified independently in two places - you will eventually need to deal with merge conflicts.

This is similar to my answer here regarding TFS:

https://answers.atlassian.com/questions/246557/tfs-with-git-repository-and-stash-integration-is-it-possible

Cheers,

Charle

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,764 views 1 5
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