-
Notifications
You must be signed in to change notification settings - Fork 58
Syncing with Bootstrap
Then you'll be able to sync your Boosted's repository.
Note: examples assume you're working on v4-dev branch.
To get latest Bootstrap's changes, you may use two different strategies.
Working without your own Bootstrap fork will throw conflict for each file in the repository. Pretty ugly, but when no merge had been done for a while or if you're new to Boosted, it'll allow you to learn everything about Boosted differences.
git merge upstream/v4-dev --squash --allow-unrelated-historiesSquashing is optionnal but I highly recommend it. You'll encounter conflict for each file and will need to resolve them manually. Good luck!
To maintain Boosted at a higher frequency, you'll need to have your own Bootstrap's fork.
Note: you'll have to keep the last patched commit hash somewhere. I highly recommend to add it to your commit message — see an example commit somewhere in v4.4.0 — or at least either in your PR or issue.
git fetch upstream
git merge upstream/v4-dev
git diff --full-index --binary $last-patched-commit $last-commit > ../patch.patchThis should generate a patch.patch file in Bootstrap's parent directory.
git apply -3 --ignore-space-change --ignore-whitespace ../patch.patch --exclude=dist/* --exclude=js/dist/* --exclude=docs/dist/*You should have conflicts, and you'll need to resolve them manually — using a GUI (like your IDE) will save you time and mental health.
Since Boosted is not currently a fork, you won't have any merge commit. I suggest to format your commit message this way: chore(merge v4-dev): patched commit → $last-commit where v4-dev is the merged branch name and $last-commit the last merged commit's hash.