NOTE: This doesn't work from a bitpost bare repo, so you need to make a new direct clone of your GitLab fork, first, if you don't have one yet.
Add the remote, call it something specific:
git remote add someauthor-upstream https://gitlab.com/someauthor/theprojectiforked
Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:
git fetch someauthor-upstream
Get on the branch where you are tracking the rebase. Typically your master branch but can be whatever:
git checkout tlsv12 # or master or next or...
Rewrite your branch so that any commits of yours that aren't already in upstream are replayed on top of that other branch (if you do a straight merge instead of rebase you'll screw up the upstream!):
git rebase someauthor-upstream/master
If you haven't done so, in GitLab, go to the "Protected Branch" settings and remove protection from master - it's just a fact that you're going to need to force-push to master.
IF the branch that was the target of the rebase existed, force the push in order to push it to your own forked repository on GitLab. You only need to use the -f the first time after you've rebased:
git push -f origin master
ELSE if the branch you merged into is a new creation, set its upstream when you push:
git push --set-upstream origin tlsv12
You will want to force-fetch to update the bare repo you may have on bitpost, DO THIS NOW or you will screw things up badly later:
[Simple-WebSocket-Server.git] git fetch origin master:master -f
You should also force-update ALL your dev repos, NOW, for the same reason:
git reset --hard HEAD^^^^^^ && git pull
NOTE that you may need to remove a remote-tracking branch if you don't need it any more. It's stupidly painful to get right, eg:
[Simple-WebSocket-Server.git] git branch -rd eidheim/Simple-WebSocket-Server/master
|