#1085  Keeping forks syncronised
Closed
Unknown opened 1 year ago

Hello,

A while back I forked onedev/server so that I could work on the possibility of contributing, however I have been busy over the last month or so and didn't end up doing anything. However now the repository is out of sync, and I can't seem to find out how to actually sync it with upstream.

Advice on how to do this would be helpful, I would rather not do the old strategy of pulling onedev/server and then pushing it to my fork :/

Robin Shen commented 1 year ago

Just create a pull request from original to your fork and merge it.

Unknown commented 1 year ago

@robin is there no better way to do this?

Github has a feature where you can sync the branches, but OneDev does not. Spamming pull requests does not seem like a good way to do this. Does OneDev have no way of syncronising with the parent?

Robin Shen commented 1 year ago

If you don't like to use pull request to sync things, you may set up in your account project (the project named after your account name) a CI job to sync child repositories with other repositories. Check out below for details:

https://docs.onedev.io/tutorials/code/repo-mirror/

Robin Shen commented 1 year ago

This way you can have the job run periodially or run it manually as necessary.

Unknown commented 1 year ago
Ah, much better, I will take a look at this. Thanks Robin :)
OneDev referenced from other issue 1 year ago
Robin Shen changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Minor
Assignee
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1085
Please wait...
Page is in error, reload to recover