Forums

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

copy specific repo content to another repo and update it

Maxi
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!
July 8, 2022

Hello,

Currently I’m working on a project with multiple repository’s:

  • one blueprint repository with various config directories for different topics and/or devices
  • Multiple customer repository’s - one for each customer

I would like to copy selected config directories from the blueprint repository to a customer repository - only the ones that are needed and not everything.

The configs in the customer repositories won’t be edited or changed. Customer specific data/config will be provided by additional files. Currently I accomplish this task with a python script.

 

And  here is my problem:

When something in the blueprint repository has changed that is also present in the customer repository the customers configs will be not like the blueprint - the datas are not consistent.

Is there a way or tool to accomplishes the copy task form blueprint repository to a customer repository with selected files and or directories and also checks for changes in the blueprint repo and e.G. pushes the new config in a new branch to the customer repo?

1 answer

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 11, 2022

Hi Maxi,

It sounds like Git Submodules (see https://www.atlassian.com/git/tutorials/git-submodule) might be what you're looking for. It's a way of including other repositories within one repository.

Cheers,

Christian

Premier Support Engineer

Atlassian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events