Score:0

How to keep duplicate repository in sync with github?

kr flag

I have used github duplicate option with --bare in clone and uploaded to a different account in github.com

Used as in this link

Just as a process to handover the project to another team.

But there are recent changes in the original repository, how to sync those changes there, all branches.

Score:1
uz flag

One option is clone as bare repository and fetch the changes from original repo whenever there are changes.

git clone --mirror https://primary_repo_url/primary_repo.git
git fetch origin

Then, add the other new repo as another remote and push it to that repo whenever there is changes to sync.

cd primary_repo.git
git remote add --mirror=fetch secondary https://secondary_repo_url/secondary_repo.git

git push secondary --all

For more details and other options, I followed this link

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.