Remote Collaboration & Self-Hosted Git
WordGit supports cross-device backup and asynchronous multi-person collaboration through standard Git servers such as GitHub, Gitee, or self-hosted Gitea / GitLab. You can link one repository to a single document, or have an entire multi-document project share one repository.
First author: link a remote repository and push
Set your commit author before collaborating
By default the commit author is the editor's user name, and everyone can see it once you push. Ask every member to fill in a name and (optionally) an email under Settings → General & Author → Commit author first; every later commit uses it, so the commit graph clearly shows who wrote which version.
- Open the document and Commit the current version first.
- Create an empty repository on GitHub, Gitee, or your self-hosted Git platform (don't tick the options to auto-create a README / .gitignore; leave it empty for WordGit to initialize), and grant your collaborators read/write access.
- Click Link Repository on the ribbon and enter the repository URL and the remote branch name (usually
main).


- Click Link and Fetch. This only establishes the link and reads remote information; it never overwrites or uploads your local document.
- Click Push to upload the current branch's committed history to the remote repository.
Supported repository URL formats
| Protocol | Examples |
|---|---|
| HTTPS (recommended) | https://github.com/owner/paper.githttps://git.example.com:8443/group/sub/paper.git |
| SSH (scp-style) | git@gitee.com:owner/paper.gitgitea@git.example.com:owner/paper.git |
| SSH (custom port) | ssh://git@git.example.com:2222/owner/paper.git |
| HTTP (plain text, intranet) | http://192.168.1.20:3000/owner/paper.git (a security warning is shown before use) |
URL and certificate details
- Self-hosted Git servers support domain names, IPv4 addresses, custom ports, and multi-level subgroup paths (such as GitLab subgroups); GitHub and Gitee accept only two-level
owner/repopaths. - Repository URLs must not embed a username or password, query parameters (
?), or fragments (#); authentication is handled by the system Git credential manager or SSH keys. - If a self-hosted intranet server uses a self-signed HTTPS certificate, set
http.sslCAInfoorhttp.<url>.sslCAInfoin your global Git config to point to the root certificate; WordGit reads this setting automatically. - Plain HTTP sends content and credentials unencrypted; use it only on a trusted LAN, and prefer HTTPS or SSH.
Other collaborators: clone the repository locally
- Click Clone Repository on the ribbon.
- Enter the remote repository URL and the target branch name, and choose an empty local folder (preferably outside cloud-sync folders).
- Confirm. WordGit downloads the objects, verifies their integrity, and restores the documents automatically:
- If the remote is a project repository: all
.docxfiles are restored in their original folder structure and the folder is automatically marked as a project; - If the remote is a single document: it is restored as a
.docxnamed after the repository (for example,paper.gitis restored aspaper.docx).
- If the remote is a project repository: all
Windows "Protected View" prompt
On Windows, cloned documents carry the system's "from the internet" security mark. When you later double-click one in File Explorer, Word may open it in Protected View first; once you've confirmed the source is trustworthy, click Enable Editing.
Clone limitations
Cloning never overwrites existing files or history repositories. The source must be a valid history repository created by WordGit; ordinary .docx files uploaded manually through a web page, code repositories, and empty branches cannot be cloned as WordGit documents.
Everyday collaboration: fetch, pull & resolving divergence
When several people write in parallel, we recommend syncing like this:
- Commit separately: after each round of paragraph edits, click Commit locally first.
- Fetch: click Fetch to download the latest remote commits and branch status (this only updates your local history repository, not the current draft). In the commit graph you'll see
origin/<branch>and the ahead/behind count. - Pull:
- Only the other side has new commits (fast-forward): after checking that the working copy has no uncommitted changes, the add-in safely updates you to the latest version;
- Both sides have independent commits (divergence): the add-in finds the common ancestor and generates a native Word / WPS merged draft with tracked changes; the working document and both sides' commits stay unchanged until the review is finished.
- Review and finish the merge: in the right-hand Commits & Review pane, confirm both sides' changes one by one, then click Finish Merge to create a merge commit with two parents.
- Push: go back to the working document and click Push to share the merged result with your collaborators.
Safe sync policy
- Pushes use standard Git non-force push. If a collaborator has already pushed a newer version to the remote, your push is safely rejected; Pull and merge first, then push again.
- If someone force-rewrites the history of a remote branch, WordGit automatically archives your existing local version when you click Fetch, so old drafts are never lost by mistake.
- Network transfers have no overall time limit, so slow connections can clone large repositories; however, a transfer is aborted automatically if there's no progress at all for about 3 minutes, and you can click Cancel at any time to stop all background Git processes immediately.
Authentication setup
- HTTPS sign-in: uses Git's own Git Credential Manager (from system Git, or bundled with the MinGit that WordGit downloads). Credentials are stored in Windows Credential Manager; WordGit itself never stores usernames, passwords, or personal access tokens. The first connection usually opens a browser window for sign-in automatically.
- SSH sign-in: uses the SSH keys already configured on your machine (if
core.sshCommandis set in Git, for example to PuTTYplink, that is picked up automatically as well). The server's host key is recorded automatically the first time you connect to a new host. - Diagnostics never include credentials: when you export a diagnostics package or copy diagnostics, sign-in details in remote URLs and all kinds of tokens are removed, so they are safe to attach to an issue report.
