Skip to content

Instantly share code, notes, and snippets.

@JordanMussi
Last active October 27, 2016 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JordanMussi/472fc5b2e73692d224f5a659b6b78494 to your computer and use it in GitHub Desktop.
Save JordanMussi/472fc5b2e73692d224f5a659b6b78494 to your computer and use it in GitHub Desktop.

Keeping your MyBB Fork updated

Initial setup

You only need to perform these actions once on your local copy of your fork.

git remote add upstream https://github.com/mybb/mybb.git

Creating a branch to fix an issue

Run these commands to create a branch fix-1234 with a starting point of the last commit from the mybb/mybb repo.

git fetch upstream feature
git checkout -b fix-1234 upstream/feature

Perform your changes then

git push origin fix-1234:fix-1234

Resolving conflicts with upstream

Ensure you are on the correct branch e.g. git checkout fix-1234

git fetch upstream feature
git merge -ff upstream/feature

You will then need to manually resolve any merge conflicts then create a commit and push to your fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment