Forums

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

Keeping up to date with a project imported from GitHub

Simon London June 16, 2021

I have a project which is imported from GitHub. This worked fine, but now I would like our repository to be updated with the latest changes from the original GitHub repo.

What is the best way to go about this?

It might be possible to fiddle with patches and such, but it would be ideal if there was a good way to do this without much effort, as periodic updates will be required.

1 answer

1 accepted

0 votes
Answer accepted
JimmyVanAU
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.
June 16, 2021

Hi Simon,

Welcome to the community. Could you tell us a little more about the Github repo? How are the remotes set up? If you run

git remote -v

What do you see?

Ideally the original Github repo and your current Bitbucket repo are both listed, then you can sync changes with either

git fetch --all
or
git pull --all

You can read a little more at https://www.atlassian.com/git/tutorials/syncing

Simon London June 16, 2021

The original github repository is https://github.com/isocpp/CppCoreGuidelines/

There is nowhere to run git remote, unless I clone either the original or my own BitbBucket imported repository. If I do this, the listed remote is going to be one or the other. How would both be listed? If they were, I can see that fetch/pull would (effectively) merge changes from both sources.

Simon London June 16, 2021

I've successfully done what I wanted using multiple remotes (this was the step I was missing). This isn't a BitBucket issue, so I'll close this now. Thanks for your help.

JimmyVanAU
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.
June 17, 2021

Awesome, glad to hear it. Yep, git is super powerful, including having multiple remotes. Glad I could connect the missing link for you. Thanks for accepting the answer :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events