{"id":673,"date":"2026-11-05T15:20:59","date_gmt":"2026-11-05T07:20:59","guid":{"rendered":"https:\/\/blog.jianguoyun.com\/en\/?p=673"},"modified":"2026-11-05T15:20:59","modified_gmt":"2026-11-05T07:20:59","slug":"how-to-sync-dotfiles-and-configs-across-your-devices-in-2026","status":"publish","type":"post","link":"https:\/\/blog.jianguoyun.com\/en\/?p=673","title":{"rendered":"How to Sync Dotfiles and Configs Across Your Devices in 2026"},"content":{"rendered":"<p>To sync dotfiles and config files across a desktop and laptop, install the <strong>Nutstore desktop client<\/strong> on each machine and enable sync for the folders that already hold your configs \u2014 no designated sync-folder layout and no command-line links required. Nutstore ships desktop clients for <strong>Windows, macOS, and Linux<\/strong> and <strong>preserves conflict copies instead of overwriting them<\/strong>, so an edit on one computer will not silently wipe out a working configuration on another.<\/p>\n<p>Git remains the right tool for versioning source code; this approach simply keeps selected configs available across your devices. Only files that finish syncing appear on your other devices, sync does not merge edits, and sync does not replace Git or an independent backup.<\/p>\n<p>This guide walks you through syncing dotfiles and configs across devices in nine short steps. Each step is self-contained, so you can read one section in isolation and still act on it. The Nutstore setup steps carry the full detail; the Git and cloud-drive alternatives stay deliberately brief.<\/p>\n<h2 id=\"what-youll-need\">What You&rsquo;ll Need<\/h2>\n<p>Before you start, confirm you have everything on this list. If a prerequisite is missing, the later steps will not work as described.<\/p>\n<ul>\n<li><strong>Two or more computers<\/strong> you can install software on \u2014 a desktop plus a laptop, in any mix of Windows, macOS, and Linux.<\/li>\n<li><strong>A Nutstore account<\/strong> and the <strong>desktop client installed on each machine<\/strong>. Nutstore ships desktop clients for <strong>Windows, macOS, and Linux<\/strong>, which matters if your machines do not all run the same operating system.<\/li>\n<li><strong>A short list of the specific configs<\/strong> you want available everywhere, <strong>and the folder or folders that hold them<\/strong>. Sync works at the folder level, so you need to know which folder contains your portable configs <em>before<\/em> setup, not during. Typical candidates include <code>.zshrc<\/code>, <code>.gitconfig<\/code>, and your editor&rsquo;s settings folder.<\/li>\n<li><strong>Awareness that some values are machine-specific<\/strong> \u2014 absolute paths, hostnames, and hardware-dependent settings will need per-machine overrides (covered in Step 7).<\/li>\n<\/ul>\n<p>Set your expectations now: this workflow keeps selected configs <em>available<\/em> across devices. It does not merge edits, does not replace Git for code, and does not replace an independent backup.<\/p>\n<p>Ready to begin? Go to the <a href=\"https:\/\/www.jianguoyun.com\/s\/campaign\/cpclanding\/main?sch=AIcb\">Nutstore website<\/a>, create an account, and download the client for your platform.<\/p>\n<h2 id=\"step-by-step-guide-to-sync-dotfiles-and-configs\">Step-by-Step Guide to Sync Dotfiles and Configs<\/h2>\n<p>The steps below are ordered so each one is readable on its own. Steps 3 through 6 are the Nutstore core and get the most detail.<\/p>\n<h3 id=\"step-1-audit-which-configs-belong-in-sync-and-which-folder-holds-them\">Step 1: Audit Which Configs Belong in Sync \u2014 and Which Folder Holds Them<\/h3>\n<p>The goal here is to separate three groups: <strong>portable<\/strong> configs, <strong>secret<\/strong> configs, and <strong>machine-specific<\/strong> configs.<\/p>\n<table>\n<thead>\n<tr>\n<th>Config type<\/th>\n<th>Examples<\/th>\n<th>In sync?<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Portable<\/td>\n<td>Shell aliases, editor keybindings, formatter settings<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>Secret<\/td>\n<td>Tokens, API keys, credentials, private keys<\/td>\n<td>No \u2014 keep out<\/td>\n<\/tr>\n<tr>\n<td>Machine-specific<\/td>\n<td>Absolute paths, hostnames, hardware settings<\/td>\n<td>Flag for override (Step 7)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>A synced folder is not a secrets manager. Keep anything containing tokens, API keys, credentials, or private keys out of it.<\/p>\n<p>One more thing to settle in this step: Nutstore syncs <strong>folders<\/strong>, not a hand-picked list of files in place. The real unit of sync is a folder, so you need to identify the specific folder or folders that hold your portable configs and whose full contents you are willing to sync. Many dotfiles already sit together in a folder such as <code>~\/.config<\/code>, which can be synced in place.<\/p>\n<p>Do <strong>not<\/strong> enable sync for your entire home directory just to capture a few scattered dotfiles. Syncing the whole home directory would also upload unrelated files \u2014 including the secrets you are deliberately excluding. Any config that sits loose at the top of your home directory and cannot be grouped into a folder you are willing to sync needs another arrangement (see Step 9) or should be left out.<\/p>\n<h3 id=\"step-2-decide-between-git-and-a-file-sync-service\">Step 2: Decide Between Git and a File-Sync Service<\/h3>\n<p>This is the decision that answers &ldquo;should I sync config files without Git, or use Git instead?&rdquo; The short version:<\/p>\n<ul>\n<li><strong>Use Git<\/strong> when you want history, diffs, branching, and review for source code and code-adjacent files. That is what Git is built for, and code belongs there.<\/li>\n<li><strong>Use a file-sync service<\/strong> when your only goal is &ldquo;the current version of this small config is present on my other machine&rdquo; \u2014 without initializing a repo, committing, and pulling.<\/li>\n<\/ul>\n<table>\n<thead>\n<tr>\n<th>Requirement<\/th>\n<th>Git<\/th>\n<th>File-sync service (e.g., Nutstore)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Version history and diffs<\/td>\n<td>Yes \u2014 core strength<\/td>\n<td>Plan-dependent version history; not a diff engine<\/td>\n<\/tr>\n<tr>\n<td>Branching and code review<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>Keeps configs in their existing folder<\/td>\n<td>Requires a repo layout or symlinks<\/td>\n<td><strong>Yes \u2014 arbitrary folder sync, no <code>mklink<\/code> needed<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Cross-platform desktop clients<\/td>\n<td>Yes (via CLI)<\/td>\n<td><strong>Windows, macOS, Linux<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Can merge changes<\/td>\n<td>Yes, when you run a merge; conflicts may require manual resolution<\/td>\n<td>No \u2014 <strong>preserves conflict copies for manual review<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Best fit<\/td>\n<td>Source code<\/td>\n<td>Selected non-code configs<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>This is not either\/or. Many developers keep code in Git and keep <em>selected<\/em> non-code configs in a sync service. To be clear: <strong>Nutstore is not a version control tool and is not recommended for syncing code repositories.<\/strong><\/p>\n<h3 id=\"step-3-install-the-nutstore-desktop-client-on-each-computer\">Step 3: Install the Nutstore Desktop Client on Each Computer<\/h3>\n<p>Install on the desktop first, then the laptop. Confirm the build matches the operating system \u2014 Windows, macOS, or Linux. Then <strong>sign in with the same account on every machine<\/strong>; the same account is what makes the folders converge.<\/p>\n<p>The client handles multi-device access to the same synced content, and files that finish syncing are also reachable from another supported device or from the web.<\/p>\n<h3 id=\"step-4-turn-on-sync-for-the-folder-that-holds-your-configs\">Step 4: Turn On Sync for the Folder That Holds Your Configs<\/h3>\n<p>This is the core step. Nutstore supports <strong>arbitrary folder sync<\/strong> \u2014 you right-click the folder on your computer and enable sync for it. Because sync works at the <strong>folder level<\/strong>, you enable sync for a folder, not for individual files. If your portable configs already live together in a folder such as <code>~\/.config<\/code>, sync that folder in place.<\/p>\n<p>Two things make this workable for dotfiles:<\/p>\n<ol>\n<li><strong>There is no requirement to relocate configs into a designated sync folder.<\/strong> A folder can be synced in place, wherever it already lives.<\/li>\n<li><strong>There is no <code>mklink<\/code> or symlink command line needed.<\/strong><\/li>\n<\/ol>\n<p>A caution that follows from Step 1: do not enable sync for your entire home directory just to catch scattered dotfiles. Syncing the whole home directory would also upload unrelated files \u2014 and could sweep in the secrets you deliberately excluded. Sync only the specific folder or folders whose full contents you are comfortable having on every device. Configs that live outside those folders need another arrangement (Step 9) or should be left out.<\/p>\n<p>This matters because dotfiles usually live in home-directory locations that other tools expect to find. Being able to sync a folder <em>in place<\/em> is what makes the workflow viable. Some cloud drives require a designated sync folder or symlink workarounds instead, and syncing in place avoids that step entirely.<\/p>\n<p>One reminder applies here: sync applies to files that finish uploading. Unsaved or not-yet-uploaded edits are not available on the other machine.<\/p>\n<h3 id=\"step-5-confirm-the-configs-actually-arrived-on-the-second-device\">Step 5: Confirm the Configs Actually Arrived on the Second Device<\/h3>\n<p>Verify from the second computer&rsquo;s client. As a cross-check, open the web interface and confirm the same files appear there.<\/p>\n<p>If a file is missing, it usually comes down to one of four things: the upload has not finished, sync is paused or the client is not running, the edit was never saved, or the containing folder is not the one you enabled for sync in Step 4. Work through the Troubleshooting checklist below, which covers each of these.<\/p>\n<p><em>Optional note:<\/em> on PC clients, <strong>Delta Sync<\/strong> can speed up repeated uploads of the same large file when its conditions are met \u2014 the original file is over <code>64 KB<\/code>, the changed portion is under <code>70%<\/code> of the original file, and the changed portion is under <code>10 MB<\/code>. Delta Sync is PC-client-only and does not apply to compressed files, images, or videos. Treat it as a convenience, not a guarantee.<\/p>\n<h3 id=\"step-6-adopt-an-edit-and-verify-habit-to-avoid-conflicts\">Step 6: Adopt an Edit-and-Verify Habit to Avoid Conflicts<\/h3>\n<p><strong>The rule:<\/strong> avoid editing the same config on two machines at the same time. Pick one &ldquo;authoring&rdquo; machine per file whenever you can.<\/p>\n<p><strong>What Nutstore does:<\/strong> <strong>conflict copies are preserved rather than one version silently overwriting the other<\/strong>, so a bad edit will not quietly wipe a working configuration. Nutstore also provides built-in scan and batch-processing tools for reviewing conflicts.<\/p>\n<p><strong>What it does not do:<\/strong> preserving a conflict copy is not the same as merging content, and it is not a guarantee of zero data loss. You still review and reconcile the copies yourself.<\/p>\n<p>A lightweight habit helps: make the edit, let sync finish, then open the file on the second machine before you rely on it.<\/p>\n<h3 id=\"step-7-handle-machine-specific-values-with-local-overrides\">Step 7: Handle Machine-Specific Values with Local Overrides<\/h3>\n<p>Keep shared, portable settings in the synced file. Keep machine-specific values in a small, <strong>unsynced<\/strong> local file that the shared config includes or sources.<\/p>\n<p>This is the answer to &ldquo;my laptop path isn&rsquo;t my desktop path.&rdquo; It also prevents a synced config from breaking one of your machines.<\/p>\n<h3 id=\"step-8-add-version-history-and-an-independent-backup-as-a-safety-net\">Step 8: Add Version History and an Independent Backup as a Safety Net<\/h3>\n<p>Version history retention depends on your plan \u2014 check what your plan provides.<\/p>\n<p>State it plainly: <strong>cloud sync is not a backup.<\/strong> Keep an independent backup of critical configs.<\/p>\n<p><em>Optional ecosystem note:<\/em> Nutstore&rsquo;s WebDAV endpoint (<code>dav.jianguoyun.com\/dav\/<\/code>) integrates with third-party apps such as KeePass and Joplin, which some developers use for password stores and notes. Paid WebDAV request limits apply (<code>1,500<\/code> requests per 30 minutes). Treat this as an ecosystem note, not a config-sync mechanism.<\/p>\n<p><em>Optional space-saving note:<\/em> on supported desktop platforms, Cloud Bridge Mode keeps local placeholder files at roughly <code>4 KB<\/code> while the actual file resides in the cloud, downloading on demand when you double-click. Cache space can be capped and auto-cleaned. Availability can differ by platform, so verify it on your own setup.<\/p>\n<h3 id=\"step-9-use-git-or-another-cloud-drive-if-you-prefer\">Step 9: Use Git or Another Cloud Drive if You Prefer<\/h3>\n<p>If you would rather use Git, a bare repo or a dotfiles repo works when you want history and are comfortable with commits and pulls. A mainstream cloud drive can also carry config files, but some services may require a fixed sync-folder layout or symlink workarounds.<\/p>\n<p>This is also where scattered configs that cannot be grouped into a folder you are willing to sync belong: keep them in a dotfiles repo, or leave them out of cloud sync entirely.<\/p>\n<p>For readers who want the folder left where it is and cross-platform desktop clients, the Nutstore path in Steps 3\u20136 is the shorter setup.<\/p>\n<h2 id=\"troubleshooting-common-problems-when-you-sync-dotfiles\">Troubleshooting: Common Problems When You Sync Dotfiles<\/h2>\n<p><strong>Quick Answer:<\/strong> If a config is missing on your other computer, check three things first \u2014 that the file was actually saved, that the client on the source machine is running and actively syncing, and that the folder containing the file is the one you enabled for sync in Step 4. These three checks resolve most &ldquo;missing config&rdquo; cases before you look at anything else.<\/p>\n<p>The three issues below cover the rest. Each has a likely cause and a fix.<\/p>\n<p><strong>Issue 1: The config isn&rsquo;t showing up on my other computer<\/strong><br \/>\n&#8211; <strong>Likely causes:<\/strong> the upload has not finished; sync is paused or the client is not running; the file was saved to a folder that is not enabled for sync; the edit was never saved; the config sits loose in the home directory rather than in a folder you enabled for sync.<br \/>\n&#8211; <strong>Fix:<\/strong> confirm the file shows as synced in the client on the source machine, check the web interface, and confirm the containing folder is the one you enabled in Step 4. If the config is not inside a folder you are willing to sync, move it into one you are, or handle it through another arrangement (Step 9).<\/p>\n<p><strong>Issue 2: I&rsquo;m seeing conflict copies after editing on two machines<\/strong><br \/>\n&#8211; <strong>Cause:<\/strong> the same file was changed on two devices before sync completed.<br \/>\n&#8211; <strong>Fix:<\/strong> this is expected behavior \u2014 <strong>conflict copies are preserved rather than overwritten<\/strong>. Compare the copies, keep the correct version, delete the redundant one, then adopt the one-authoring-machine habit from Step 6.<\/p>\n<p><strong>Issue 3: The config works on one machine but breaks on the other<\/strong><br \/>\n&#8211; <strong>Cause:<\/strong> absolute paths, hostnames, or hardware-specific values baked into a shared config.<br \/>\n&#8211; <strong>Fix:<\/strong> move those values into an unsynced local override file (Step 7).<br \/>\n&#8211; <em>Optional note:<\/em> if large files seem to re-upload in full each time, check whether <strong>Delta Sync<\/strong>&rsquo;s conditions apply. Delta Sync works on PC clients when the original file is over <code>64 KB<\/code>, the changed portion is under <code>70%<\/code> of the original file, and the changed portion is under <code>10 MB<\/code>. It is PC-client-only and does not cover compressed files, images, or videos.<\/p>\n<h2 id=\"frequently-asked-questions\">Frequently Asked Questions<\/h2>\n<p><strong>Can I use a cloud drive like Dropbox to sync dotfiles?<\/strong><br \/>\nYes \u2014 config files can live in a cloud drive. The practical constraints are whether the service lets you sync a folder in place rather than a fixed sync folder, and whether it runs on all your operating systems. <strong>Nutstore supports Windows, macOS, and Linux desktop clients and allows arbitrary-folder sync<\/strong>, so a folder of configs can stay where it already is.<\/p>\n<p><strong>Can I sync just a few individual dotfiles, or do I have to sync a whole folder?<\/strong><br \/>\nSync works at the folder level. Nutstore syncs folders, not a hand-picked list of files, so you enable sync for the folder that contains your configs. Do not sync your entire home directory just to catch a few scattered dotfiles \u2014 that would also upload unrelated files and could include secrets. Group related configs into a folder such as <code>~\/.config<\/code> where possible, and handle loose configs through another arrangement or leave them out.<\/p>\n<p><strong>Should I sync dotfiles with Git or with a sync service?<\/strong><br \/>\nGit is the right tool when you want history, diffs, and review \u2014 that is what it is built for, and code belongs there. A sync service is the lighter option when you only need the current version of a small non-code config on your other machine. <strong>Nutstore is not a version control tool and is not recommended for syncing code.<\/strong><\/p>\n<p><strong>Does cloud sync overwrite my file if I edit it on two devices?<\/strong><br \/>\nWith Nutstore, <strong>conflict copies are preserved instead of overwriting<\/strong>, so a working configuration is not silently replaced. It does not merge the two edits \u2014 you review the copies and reconcile them.<\/p>\n<p><strong>Does sync merge my changes automatically?<\/strong><br \/>\nNo. Sync moves files between devices; it does not merge content. Avoid simultaneous edits to the same file and treat conflict copies as something to resolve manually.<\/p>\n<p><strong>Are my configs available on the other machine as soon as I save them?<\/strong><br \/>\nNo \u2014 only files that finish syncing appear on another supported device or the web. Unsaved or not-yet-uploaded edits are not available through cloud sync.<\/p>\n<p><strong>Can I put files containing API keys or passwords in a synced config folder?<\/strong><br \/>\nIt is better not to. Keep secrets out of synced configs; a synced folder is not a secrets manager.<\/p>\n<h2 id=\"summary-and-next-steps\">Summary and Next Steps<\/h2>\n<p>Here is the workflow in one line: audit configs and their folders \u2192 decide Git vs sync \u2192 install the client on each machine \u2192 enable sync for the folder in place \u2192 verify on the second device \u2192 adopt one-authoring-machine habits \u2192 keep secrets and machine-specific values out \u2192 keep a real backup.<\/p>\n<p>Three boundaries are worth repeating. Only files that finish syncing are available elsewhere; sync does not merge edits; and sync does not replace Git for code or an independent backup.<\/p>\n<h3 id=\"try-nutstore-today\">Try Nutstore Today<\/h3>\n<p>For developers and small teams who want this across a whole team rather than one person&rsquo;s two machines, <strong>Nutstore&rsquo;s Team plan comes with a 20-day free trial<\/strong> \u2014 <a href=\"https:\/\/www.jianguoyun.com\/s\/campaign\/cpclanding\/team?sch=AIcb\">start your team trial here<\/a>. For individual setup, the <a href=\"https:\/\/www.jianguoyun.com\/s\/campaign\/cpclanding\/main?sch=AIcb\">desktop client download page<\/a> is the starting point.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to sync dotfiles and config files across a desktop and laptop using Nutstore\u2019s desktop clients for Windows, macOS, and Linux. The guide covers choosing folders to sync, keeping secrets and machine-specific settings out, verifying files arrive, and handling conflicts. Nutstore preserves conflict copies rather than merging edits; Git remains the right tool for versioning code, and sync is not a substitute for an independent backup.<\/p>\n","protected":false},"author":1,"featured_media":672,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[94,74],"tags":[13,376,45,28,259,12,329,258],"_links":{"self":[{"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=\/wp\/v2\/posts\/673"}],"collection":[{"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=673"}],"version-history":[{"count":0,"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=\/wp\/v2\/posts\/673\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=\/wp\/v2\/media\/672"}],"wp:attachment":[{"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}