Keeping forks syncronised (OD-1085)
Unknown opened 3 years 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 3 years ago

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

  • Unknown commented 3 years 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 3 years 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 3 years ago

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

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