If you already version your dotfiles with Git, you do not need a Git tutorial — you need a boundary. Keep source code and repositories in Git, and use a file-sync service like Nutstore only for the non-repository supporting files you want available on every machine — shell aliases, editor settings, and app configs.
This article rests on one rule: Git version-controls source code and repositories; a file-sync service is for ordinary supporting files you want on more than one machine. Nutstore is not recommended for code sync and is not a Git replacement, a repository host, or a merge workflow. Below you get a scope decision, a setup procedure built around one dedicated folder, and a conflict-review habit. If you are weighing Git vs cloud storage for dotfiles on multiple computers, that framing is the whole answer.
What You’ll Need Before You Start
Before you sync dotfiles across devices, confirm you have the following in place. This is a checklist, not a tutorial.
- An existing Git setup. Your dotfiles are already tracked in a repository. This guide assumes that and does not teach it.
- A Nutstore account and desktop client installed on each machine where you want the supporting files available. Supported desktops are Windows, macOS, and Linux — and Linux desktop support is uncommon among domestic providers, which matters if you work across mixed operating systems.
- One dedicated ordinary folder — a normal folder you designate for cross-device supporting files, kept separate from any repository. This folder is the unit of work for this whole article; see Step 2.
- A text editor for reviewing files and any conflict copies.
- An independent backup of anything you cannot regenerate.
- Access to the current Nutstore client documentation for the version you install. Client interfaces change, so the steps below describe what to expect rather than exact menus.
Step-by-Step Guide: Setting Up a Git + Cloud Sync Workflow
Six steps. Steps 1–2 settle the scope decision, Steps 3–4 cover the setup procedure, and Steps 5–6 cover the risk controls. Each step is written to stand on its own.
Step 1: Decide what stays in Git and what is only a sync candidate
To sync dotfiles safely, start by splitting your files into two groups: repository files (code, scripts, anything that belongs to a project’s history) and ordinary supporting files (things you merely want present on more than one machine).
| File / folder type | Belongs in | Reason |
|---|---|---|
.git directory and any Git working tree |
Git only — never in a synced folder | Repository state must not be mirrored by a file-sync tool |
| Project source code | Git only | Nutstore is not recommended for code sync |
| Shell aliases, prompt config, editor settings (non-secret) | Candidate for sync — see Step 2 | Availability matters more than history — but confirm suitability first |
| App configs you want on more than one desktop | Candidate for sync — see Step 2 | Same |
| Secrets, tokens, SSH private keys | Neither without deliberate handling | Sync does not add protection |
Important qualification: the entries marked candidate are candidates only. Whether any individual file is suitable depends on where it lives, what reads and writes it, and whether two machines might change it at once. Confirm each file’s suitability before placing it in the synced folder — do not treat this table as an instruction to sync portions of your home or config directories.
Three rules of thumb make the decision repeatable:
- If you’d want to
git diffit, keep it in Git. - If you only want it to exist on the other machine, it may be a sync candidate.
- If you’d be upset to see a conflict copy of it, back it up separately.
Step 2: Create or choose one dedicated supporting-files folder, separate from repositories
To sync dotfiles across devices without touching repository state, create a new ordinary folder for this purpose, or choose an existing ordinary folder that is already clearly separated from any repository. A dedicated folder makes the boundary visible and reviewable.
Verify the folder’s contents before it is added to sync. Walk the folder and confirm there is no .git directory, no Git working tree, no project source code, and nothing that two machines are likely to write to simultaneously.
A dedicated, verified folder is the right unit because it gives you one place to review and keeps repositories well away from a mirroring tool. Stating the scope boundary in full: Nutstore syncs an ordinary folder; it does not version-control, merge, or understand repository state, and it is not recommended for code sync. The decision here is which ordinary folder to dedicate — not a partial-sync configuration or file-by-file exclusion inside an already-synced folder.
This is also where a common mixed-OS question gets answered: to sync config files between Linux and Mac, keep OS-specific variants as distinct files rather than trying to make one file serve both.
Step 3: Add the folder to sync using the current client guidance
Install and sign in to the Nutstore desktop client on each machine, using the same account. Go to the Nutstore website, create an account, and download the client for your platform — or get the desktop client here.
Nutstore supports syncing a chosen ordinary folder on the computer, and doing so does not require command-line links — that is the capability that makes it usable for files that need to stay where their tools expect them. Follow the current client documentation for your version for the exact steps to add the folder.
Two operational notes:
- The client is the sync engine. Mobile and web access exist, but Delta Sync is PC-client only, so the desktop client is the relevant surface for this workflow.
- LAN Sync is automatic and needs no configuration. On the same network, transfers can reach tens of MB/s — useful when you are setting up a second machine at home or in the same office.
Do not include repositories in the folder you add.
Step 4: Let the first sync complete and verify on the second device
Confirm the folder shows as synced on machine A, then open the same folder on machine B and check the files are present. This verification step is what turns a hopeful setup into a working sync dotfiles routine.
State the success boundary accurately: successfully synced files can be accessed from another supported device or the web, but edits that were never saved or uploaded are not available through cloud sync.
If local disk space is a concern, Cloud Bridge Mode is worth a look: local placeholder files are only about 4 KB, and actual files reside in the cloud and download on demand. Feature availability can differ by platform, so verify it against current documentation rather than assuming it is universal.
Delta Sync applies on the PC client when its stated conditions are met — original file larger than 64 KB, delta smaller than 70% of the original, and delta under 10 MB — and it syncs up to 100x faster. Note that compressed files, images, and videos do not support Delta Sync, which matters if your supporting files are ever bundled into an archive.
Step 5: Know what happens when two machines touch the same file
When you sync dotfiles across devices, two machines can eventually touch the same file. Nutstore’s Smart Conflict Resolution preserves conflict copies rather than overwriting them, so you can inspect what changed instead of losing an edit.
State the limits plainly: preserving a conflict copy is not automatic merging and does not guarantee zero data loss. Sync is not a merge workflow. The practical rule is simple — avoid editing the same synced file on two devices at once.
Build a conflict-review routine rather than reacting only when something looks wrong:
- Check for conflict copies on a schedule — for example, after switching machines.
- When one appears, compare it against the original by hand.
- Keep the intended change, then remove the conflict copy.
- In shared folders, conflict copies include the member nickname, so the source of the change is identifiable.
- When several conflicts appear at once, the built-in scan and batch-processing features help.
The tool preserves evidence; the human decides. This is the routine that keeps a Git repo conflict after syncing from becoming a mystery.
Step 6: Keep an independent backup and keep repositories under Git
If you sync dotfiles with any cloud service, sync does not replace an independent backup. Keep a separate copy of anything you cannot regenerate.
Repositories stay under Git — that is the version-control layer; sync is availability only.
If a repository ever ends up affected by sync, do not rely on the synced copy to reconstruct it. Restore repository state only from a known-good Git copy or backup — for example, a clean clone from your remote or a verified local backup — and follow Git’s own guidance for recovery. Never treat a synced folder as a recovery source.
Troubleshooting Common Dotfile Sync Problems
Quick Answer: When something looks wrong after you sync dotfiles, work through these general first actions in order. (1) Check the sync status on both machines and confirm the desktop client is running. (2) Avoid concurrent edits to the same file from two devices. (3) If conflict copies appear, review them by hand and keep the intended version. (4) If a repository is involved, pause or stop syncing before you change anything, and restore repository state only from a known-good Git copy or backup — never from the synced copy. The three cases below apply that order to specific symptoms.
Issue 1: You see conflict copies in the synced folder
- Cause: the same file was edited on two devices before sync completed.
- Fix: open both copies, compare them by hand, keep the intended version, delete the conflict copy. Then avoid concurrent edits to the same file.
- Boundary reminder: the tool preserved the copy; it did not merge it.
Issue 2: A Git repository ended up inside the synced folder
- Cause: a
.gitdirectory or working tree was included in the folder added to sync, so two machines mirrored repository state. - Fix: Do not delete or move the repository while sync is active — a deletion made in a synced folder can propagate to your other synced devices and to the cloud copy, which is exactly the outcome you are trying to avoid. Instead, take these steps in order:
1. Pause or stop syncing on the affected machine before you touch the folder.
2. Preserve a separate copy of the repository somewhere outside the synced folder, so you have your own snapshot independent of the sync service.
3. Consult the current client documentation for the version you are running, since the correct way to take a folder out of sync depends on the client.
4. Restore repository state only from a known-good Git copy or backup — a clean clone from your remote or a verified local backup — and follow Git’s own guidance for recovery. - Boundary reminder: this is why Step 2 requires verifying the folder’s contents before it is added to sync, and why Nutstore is not recommended for code sync. A synced copy is not a recovery source.
Issue 3: A file is stale or missing on the second machine
- Cause candidates: the edit was never saved or uploaded; the desktop client was not running; Delta Sync conditions were not met (PC client only, and no Delta Sync for compressed files, images, or videos).
- Fix: save and let the client finish uploading; confirm the client is running on both machines; re-check. If the file is a zip, image, or video, expect a full upload rather than a delta.
- Boundary reminder: sync cannot deliver edits that were never saved or uploaded.
Frequently Asked Questions
1. Can cloud sync replace Git for dotfiles?
No. Git version-controls repositories; cloud sync makes selected ordinary files available across devices. They address different problems and are best used for different file sets.
2. Is it safe to sync a .git folder?
No — keep repositories out of any synced folder. Mirroring a working tree across machines can produce conflicting copies and repository state you did not intend. If a repository is affected, pause syncing before changing anything and restore it only from a known-good Git copy or backup.
3. Should dotfiles be in Git or in cloud storage?
Split them. Repository files stay in Git; ordinary supporting files may be sync candidates — but only after you confirm the folder’s contents and each file’s suitability. Do not sync arbitrary portions of your home or config directories.
4. How do I sync config files between Linux and macOS?
Install the desktop client on both machines, keep OS-specific variants as distinct files, and add one dedicated ordinary folder to sync — following the current client guidance for your version. Windows, macOS, and Linux desktops are supported, and syncing a chosen folder does not require command-line links.
5. Will sync merge my edits if two machines change the same file?
No. Conflict copies are preserved rather than overwritten, so you can inspect what changed — but preserving a copy is not merging, and it does not guarantee zero data loss.
6. Does Nutstore work on Linux?
Yes — Linux is among the supported desktop platforms, alongside Windows and macOS (rare full-platform support among domestic providers). Feature availability can differ by platform, so verify the specific feature you depend on against current client documentation.
Summary and Next Steps
The decision rule, in three lines:
- Git stays in charge of code and repositories.
- Sync handles one dedicated ordinary folder of supporting files you want on more than one machine.
- Conflict copies get reviewed promptly, and an independent backup stays in place — sync does not merge edits or guarantee zero data loss.
To sync dotfiles across devices without disturbing repository state, follow that rule in order: scope first, then one verified folder, then a conflict-review habit. If a repository ever ends up in a synced folder, pause syncing before changing anything, keep your own copy, and restore only from a known-good Git copy or backup.
This workflow is most valuable to developers who work across several machines — and often as part of a team that shares configs and documentation. That is where the Nutstore Team plan fits, and you can start with a 20-day free trial.
And the boundary, stated once more for your protection: Nutstore is not recommended for code sync and is not a substitute for Git, a repository host, or a merge workflow.
