The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Matt Paskus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

Atlassian Community Events