Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Matt Paskus February 27, 2014

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

0 votes
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 28, 2014

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
TAGS
AUG Leaders

Atlassian Community Events