Sync LifeBase
LifeBase uses Git for syncing. Treat commits lightly: small edits and mixed updates can share a simple sync commit. Use this workflow after making LifeBase changes; no separate commit/push confirmation needed.
- Inspect status, branch, upstream, and any unfinished Git operation. Include all current LifeBase changes, including untracked files; honor ignore rules.
- Resolve existing conflicts before committing. Preserve both sides' new information; compare each side with the base to avoid restoring obsolete text. Preserve existing stashes. Ask only if competing edits require a user decision.
- Stage all changes with
git add -A. Check the staged diff for conflict markers and accidental changes. Commit if needed with a short message such asSync LifeBase. - Fetch the configured upstream remote and rebase onto the upstream branch. Resolve clear conflicts and continue; do not discard changes or skip commits to get past a conflict.
- Push to the upstream branch without force. If rejected because the remote advanced, fetch, rebase, and retry once. If still blocked, report the cause and preserve local work.
- Verify the working tree is clean and local HEAD matches the remote branch. Report completion or the exact remaining blocker.
Use the existing branch and upstream. If either is missing or ambiguous, ask rather than inventing a destination. Never reset away work or force-push for routine sync.