Upgrade NodeBB when the code is in another repository
-
Why is your code is a different repository?
-
I have no idea.
This project is for a client and he just gave me a private repository (it seems like a fork) of NodeBB and ask me to upgrade it / do few small changes.
He modified a little the code and he's aware that he will lose those changes after the upgrade.Is it possible to upgrade it and keep it on that repo or should I start from scratch?
-
Sure it's possible, the easiest way is probably:
- Clone the private repo locally
- Add a new remote called
source
pointing to NodeBB's repo - Checkout the source branch you want
- Push that branch to the private repo
git push -uf origin/[branch]
-
I've tried, but I'm stuck after the 4th step.
Is like the 4th step is just creating a new branch with remote="origin" but without the changes of the branch i've pushed from the remote called "source".The 4th step is supposed to push the source branch to the origin remote, right?
-
I've finally managed to do it going to a origin branch and doing a pull of the source branch "v1.8.x". I've executed the nodebb upgrade script and it worked fine, but now there are some npm libraries that are missing, so i'll need to do some tweaks there.
Thanks!