I don’t see a way to easily update a forked repository on Codeberg, to keep it in sync with the original repo?
On Codeberg, I forked freesewing/freesewing to create my BenJamesBen/freesewing repository, and then I git cloned BenJamesBen/freesewing to a local repository. On GitHub, they have a “Sync” button I could use to keep my GitHub fork synced with the FreeSewing GitHub repo. However, I don’t see a similar button on Codeberg?
What I usually do is just don’t worry about keeping an up-to-date develop branch in my fork.
Whenever I create a new local branch, I just create it from upstream/develop. Or if I need to rebase a branch I rebase it directly onto upstream/develop. And so on.
You just have to call git fetch to keep the upstream remote up-to-date.
Of course your approach works, too. In either case, one could write a simple script that does the same as the sync fork command on GitHub.
@Benjamin_F We can configure a push mirror on the repository.
Have never used this, but if you’d like I’m happy to configure your fork (or another test repo) here to see how that might work out.
My usual workflow for projects like this is to set up the following:
git clone ssh://git@codeberg.org/freesewing/freesewing.git --single-branch to get the default remote set as origin and pointing to freesewing, but only the default branch (in this case develop)
fork the repo in codeberg (usually also only picking the default branch but it doesn’t really matter) git remote add ephphatha ssh://git@codeberg.org/ephphatha/freesewing.git to put a reference to my fork in the local git instance git config --local --set remote.pushdefault ephphatha so any new branches I create will get pushed to my fork instead of attempting to go to the origin.
Then I just need to remember to switch to develop, pull, create a new branch for my changes (and switch to it), then push will default to doing the right thing.