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

This widget could not be displayed.

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,316 views 8 11
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