Every Vuesion release is a complete archive, vuesion-<version>.tar.gz or vuesion-<version>.zip, without Git history. To take over a new release without losing your own changes, keep the unchanged releases on a separate branch and let Git merge them into your product.
vuesion 1.7.0 ──────────── 1.8.0
│ │
▼ ▼
main ●── your work ──── ● merge
vuesion contains only unchanged Vuesion releases, one commit per release.main is your product. It never receives commits on vuesion other than through merges.Because both branches share the release you started from, Git only has to merge what changed between two releases.
Commit the unchanged release before changing anything:
tar -xzf vuesion-1.7.0.tar.gz
cd vuesion-1.7.0
git init -b vuesion
git add -A
git commit -m "chore: vuesion 1.7.0"
git switch -c main
Then continue with Installation and develop on main.
If your repository starts with changed or unrelated code, create the vuesion branch from the release your project is on and record it as merged, without changing your files:
git switch --orphan vuesion
tar -xzf ../vuesion-1.7.0.tar.gz --strip-components=1
git add -A
git commit -m "chore: vuesion 1.7.0"
git switch main
git merge -s ours --allow-unrelated-histories vuesion -m "chore: track vuesion 1.7.0"
Run these commands without uncommitted changes. git switch --orphan empties the working tree except for ignored files.
vuesion with the new release. Removing the tracked files first makes sure that files deleted in the release are deleted on the branch:git switch vuesion
git rm -rq .
tar -xzf ../vuesion-1.8.0.tar.gz --strip-components=1
git add -A
git commit -m "chore: vuesion 1.8.0"
.env and node_modules, stay untouched.--no-commit stops before the merge commit, also when there are no conflicts:git switch main
git switch -c update-vuesion-1.8.0
git merge --no-commit vuesion
init migration, and Git takes it over without a conflict when you never changed it. An applied migration must never change:git restore --source=HEAD --staged --worktree prisma/migrations
git rm <file>.package.json by hand, then take over the lockfile of the release and add your own dependencies again with npm install:git checkout --theirs package-lock.json
npm install
git commit.npm run lint and npm test, then merge the update branch into main.Keep vuesion free of your own changes. A fix you need before the next release belongs on main; the next merge reconciles it with the release.
Continue with Why Vuesion Exists to learn the ideas and principles that shaped the architecture of Vuesion.