Copy parts of repo to new repo on a schedule

Marc Kurtz September 10, 2014

We have a situation where we want to supply only part of our repo to a third-party. I understand that git doesn't support directory-level permissions. So my thought is that we could automatically copy/sync selected directories of the repo to a different repo on a periodic schedule. Is there any facility to do this in Bitbucket?

2 answers

0 votes
Marc Kurtz September 12, 2014

We are using Bitbucket, not Stash so we don't have a server. Can Bamboo assist us in any where here?

0 votes
John Garcia
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.
September 12, 2014

We don't offer that feature at this time. Your best bet would be to (assuming you're using Linux) use rsync to deliver the files (that is, initiate from your servers to theirs) to the specified machine using rsync, scp, or another binary transfer method.

Or, use submodules as described in this chapter of Pro Git.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events