Upgrade NodeBB when the code is in another repository

  • Hello,

    I'm trying to upgrade nodebb but the code is in my own git repository, so no way on doing a checkout v1.x.x.

    Any clue on how to achive an upgrade in my situation?

    Thank you very much!

  • 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:

    1. Clone the private repo locally
    2. Add a new remote called source pointing to NodeBB's repo
    3. Checkout the source branch you want
    4. Push that branch to the private repo git push -uf origin/[branch]

  • Awesome!!! Gonna try it asap and tell you the results 🙂

    Thank you very much!

  • 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.


Suggested Topics

| | | |