Local Branches & Alternate Drafts
Branches let you try a major structural rewrite, prepare versions for different journals, or isolate a round of review edits, all without disturbing your main draft (for example, main).
Create a branch
- Click New Branch on the ribbon.
- In the commit graph, choose the past version the new branch should start from, and enter a branch name.


Branch naming rules
Branch names cannot contain spaces or special characters such as ~ ^ : ? * [ \ " < > |, cannot use Windows reserved names such as CON, NUL, or COM1, and cannot end with a period ..
Switch branches
- Click Switch Branch and pick the target local branch from the list.
- If the current draft has uncommitted changes, the add-in prompts you to commit first so unsaved progress isn't lost.
- Switching replaces the working document on disk with a two-phase atomic operation, shown in a progress window, and then automatically reopens the target branch's version in Word / WPS.
Synced-folder limitation
Switching branches replaces the current file in place, so the document must be in a local folder outside real-time sync folders such as OneDrive / SharePoint / Jianguoyun (Nutstore).
Merge branches
When you've finished a rewrite on one branch (such as journal-v2) and want to bring it into the current branch (such as main):
- Switch back to the target branch (such as
main) first and make sure your current changes are committed. - Click Merge Branch and choose the source branch to merge in.
- The add-in finds the common ancestor of the two branches and uses the native compare-and-merge engine of Word / WPS to produce a separate review draft with tracked changes.
- Go through the changes one by one in the right-hand Commits & Review pane, clicking Accept or Reject.
- Once everything is confirmed, click Finish Merge to write the final result back to the working document and create a standard Git merge commit with two parents.
Safeguards
- Until you click Finish Merge, both branches and the working document stay untouched, so you can safely abandon the merge at any time.
- If the local branch or the working document is changed externally during the review, the add-in detects it and refuses to overwrite blindly.
- If the two branches have merged into each other several times and have multiple common ancestors, the add-in uses the common ancestor chosen by Git as the base; if a few already-handled changes show up in the review draft, just confirm them one by one.
Delete branches
When the work is done, click Delete Branch to clean up local branches you no longer need:
- To avoid accidentally deleting unmerged writing, only other local branches that have already been merged into the current branch can be deleted;
- The currently active branch cannot be deleted directly.
