{"id":669,"date":"2026-11-05T15:20:56","date_gmt":"2026-11-05T07:20:56","guid":{"rendered":"https:\/\/blog.jianguoyun.com\/en\/?p=669"},"modified":"2026-11-05T15:20:56","modified_gmt":"2026-11-05T07:20:56","slug":"how-to-sync-dotfiles-across-devices-git-vs-cloud-storage","status":"publish","type":"post","link":"https:\/\/blog.jianguoyun.com\/en\/?p=669","title":{"rendered":"How to Sync Dotfiles Across Devices: Git vs Cloud Storage"},"content":{"rendered":"<p>If you already version your dotfiles with Git, you do not need a Git tutorial \u2014 you need a boundary. <strong>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<\/strong> \u2014 shell aliases, editor settings, and app configs.<\/p>\n<p>This article rests on one rule: <strong>Git version-controls source code and repositories; a file-sync service is for ordinary supporting files you want on more than one machine.<\/strong> Nutstore is <strong>not recommended for code sync<\/strong> 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 <strong>Git vs cloud storage<\/strong> for <strong>dotfiles on multiple computers<\/strong>, that framing is the whole answer.<\/p>\n<hr>\n<h2 id=\"what-youll-need-before-you-start\">What You&rsquo;ll Need Before You Start<\/h2>\n<p>Before you sync dotfiles across devices, confirm you have the following in place. This is a checklist, not a tutorial.<\/p>\n<ul>\n<li><strong>An existing Git setup.<\/strong> Your dotfiles are already tracked in a repository. This guide assumes that and does not teach it.<\/li>\n<li><strong>A Nutstore account and desktop client<\/strong> installed on each machine where you want the supporting files available. Supported desktops are <strong>Windows, macOS, and Linux<\/strong> \u2014 and Linux desktop support is uncommon among domestic providers, which matters if you work across mixed operating systems.<\/li>\n<li><strong>One dedicated ordinary folder<\/strong> \u2014 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.<\/li>\n<li><strong>A text editor<\/strong> for reviewing files and any conflict copies.<\/li>\n<li><strong>An independent backup<\/strong> of anything you cannot regenerate.<\/li>\n<li><strong>Access to the current Nutstore client documentation<\/strong> for the version you install. Client interfaces change, so the steps below describe what to expect rather than exact menus.<\/li>\n<\/ul>\n<hr>\n<h2 id=\"step-by-step-guide-setting-up-a-git-cloud-sync-workflow\">Step-by-Step Guide: Setting Up a Git + Cloud Sync Workflow<\/h2>\n<p>Six steps. Steps 1\u20132 settle the scope decision, Steps 3\u20134 cover the setup procedure, and Steps 5\u20136 cover the risk controls. Each step is written to stand on its own.<\/p>\n<h3 id=\"step-1-decide-what-stays-in-git-and-what-is-only-a-sync-candidate\">Step 1: Decide what stays in Git and what is only a sync candidate<\/h3>\n<p>To sync dotfiles safely, start by splitting your files into two groups: <strong>repository files<\/strong> (code, scripts, anything that belongs to a project&rsquo;s history) and <strong>ordinary supporting files<\/strong> (things you merely want present on more than one machine).<\/p>\n<table>\n<thead>\n<tr>\n<th>File \/ folder type<\/th>\n<th>Belongs in<\/th>\n<th>Reason<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>.git<\/code> directory and any Git working tree<\/td>\n<td><strong>Git only \u2014 never in a synced folder<\/strong><\/td>\n<td>Repository state must not be mirrored by a file-sync tool<\/td>\n<\/tr>\n<tr>\n<td>Project source code<\/td>\n<td><strong>Git only<\/strong><\/td>\n<td>Nutstore is not recommended for code sync<\/td>\n<\/tr>\n<tr>\n<td>Shell aliases, prompt config, editor settings (non-secret)<\/td>\n<td><em>Candidate<\/em> for sync \u2014 see Step 2<\/td>\n<td>Availability matters more than history \u2014 but confirm suitability first<\/td>\n<\/tr>\n<tr>\n<td>App configs you want on more than one desktop<\/td>\n<td><em>Candidate<\/em> for sync \u2014 see Step 2<\/td>\n<td>Same<\/td>\n<\/tr>\n<tr>\n<td>Secrets, tokens, SSH private keys<\/td>\n<td>Neither without deliberate handling<\/td>\n<td>Sync does not add protection<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Important qualification:<\/strong> the entries marked <em>candidate<\/em> 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&rsquo;s suitability before placing it in the synced folder \u2014 do not treat this table as an instruction to sync portions of your home or config directories.<\/p>\n<p>Three rules of thumb make the decision repeatable:<\/p>\n<ul>\n<li><strong>If you&rsquo;d want to <code>git diff<\/code> it, keep it in Git.<\/strong><\/li>\n<li><strong>If you only want it to exist on the other machine, it may be a sync candidate.<\/strong><\/li>\n<li><strong>If you&rsquo;d be upset to see a conflict copy of it, back it up separately.<\/strong><\/li>\n<\/ul>\n<h3 id=\"step-2-create-or-choose-one-dedicated-supporting-files-folder-separate-from-repositories\">Step 2: Create or choose one dedicated supporting-files folder, separate from repositories<\/h3>\n<p>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.<\/p>\n<p><strong>Verify the folder&rsquo;s contents before it is added to sync.<\/strong> Walk the folder and confirm there is no <code>.git<\/code> directory, no Git working tree, no project source code, and nothing that two machines are likely to write to simultaneously.<\/p>\n<p>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: <strong>Nutstore syncs an ordinary folder; it does not version-control, merge, or understand repository state, and it is not recommended for code sync.<\/strong> The decision here is which ordinary folder to dedicate \u2014 not a partial-sync configuration or file-by-file exclusion inside an already-synced folder.<\/p>\n<p>This is also where a common mixed-OS question gets answered: to <strong>sync config files between Linux and Mac<\/strong>, keep OS-specific variants as distinct files rather than trying to make one file serve both.<\/p>\n<h3 id=\"step-3-add-the-folder-to-sync-using-the-current-client-guidance\">Step 3: Add the folder to sync using the current client guidance<\/h3>\n<p>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 \u2014 or <a href=\"https:\/\/www.jianguoyun.com\/s\/campaign\/cpclanding\/main?sch=AIcb\">get the desktop client here<\/a>.<\/p>\n<p>Nutstore supports syncing a chosen ordinary folder on the computer, and doing so <strong>does not require command-line links<\/strong> \u2014 that is the capability that makes it usable for files that need to stay where their tools expect them. Follow the <strong>current client documentation for your version<\/strong> for the exact steps to add the folder.<\/p>\n<p>Two operational notes:<\/p>\n<ul>\n<li>The client is the sync engine. Mobile and web access exist, but <strong>Delta Sync is PC-client only<\/strong>, so the desktop client is the relevant surface for this workflow.<\/li>\n<li><strong>LAN Sync is automatic and needs no configuration.<\/strong> On the same network, transfers can reach <strong>tens of MB\/s<\/strong> \u2014 useful when you are setting up a second machine at home or in the same office.<\/li>\n<\/ul>\n<p>Do not include repositories in the folder you add.<\/p>\n<h3 id=\"step-4-let-the-first-sync-complete-and-verify-on-the-second-device\">Step 4: Let the first sync complete and verify on the second device<\/h3>\n<p>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 <strong>sync dotfiles<\/strong> routine.<\/p>\n<p>State the success boundary accurately: <strong>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.<\/strong><\/p>\n<p>If local disk space is a concern, <strong>Cloud Bridge Mode<\/strong> is worth a look: local placeholder files are only about <strong>4 KB<\/strong>, 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.<\/p>\n<p><strong>Delta Sync<\/strong> applies on the PC client when its stated conditions are met \u2014 original file larger than <strong>64 KB<\/strong>, delta smaller than <strong>70%<\/strong> of the original, and delta under <strong>10 MB<\/strong> \u2014 and it syncs up to <strong>100x faster<\/strong>. Note that <strong>compressed files, images, and videos do not support Delta Sync<\/strong>, which matters if your supporting files are ever bundled into an archive.<\/p>\n<h3 id=\"step-5-know-what-happens-when-two-machines-touch-the-same-file\">Step 5: Know what happens when two machines touch the same file<\/h3>\n<p>When you sync dotfiles across devices, two machines can eventually touch the same file. Nutstore&rsquo;s <strong>Smart Conflict Resolution preserves conflict copies rather than overwriting them<\/strong>, so you can inspect what changed instead of losing an edit.<\/p>\n<p>State the limits plainly: preserving a conflict copy <strong>is not automatic merging<\/strong> and <strong>does not guarantee zero data loss<\/strong>. Sync is not a merge workflow. The practical rule is simple \u2014 <strong>avoid editing the same synced file on two devices at once.<\/strong><\/p>\n<p>Build a conflict-review routine rather than reacting only when something looks wrong:<\/p>\n<ol>\n<li>Check for conflict copies on a schedule \u2014 for example, after switching machines.<\/li>\n<li>When one appears, compare it against the original by hand.<\/li>\n<li>Keep the intended change, then remove the conflict copy.<\/li>\n<li>In shared folders, conflict copies include the member nickname, so the source of the change is identifiable.<\/li>\n<li>When several conflicts appear at once, the built-in scan and batch-processing features help.<\/li>\n<\/ol>\n<p>The tool preserves evidence; the human decides. This is the routine that keeps a <strong>Git repo conflict after syncing<\/strong> from becoming a mystery.<\/p>\n<h3 id=\"step-6-keep-an-independent-backup-and-keep-repositories-under-git\">Step 6: Keep an independent backup and keep repositories under Git<\/h3>\n<p>If you sync dotfiles with any cloud service, <strong>sync does not replace an independent backup.<\/strong> Keep a separate copy of anything you cannot regenerate.<\/p>\n<p>Repositories stay under Git \u2014 that is the version-control layer; sync is availability only.<\/p>\n<p>If a repository ever ends up affected by sync, do <strong>not<\/strong> rely on the synced copy to reconstruct it. Restore repository state only from a <strong>known-good Git copy or backup<\/strong> \u2014 for example, a clean clone from your remote or a verified local backup \u2014 and follow Git&rsquo;s own guidance for recovery. Never treat a synced folder as a recovery source.<\/p>\n<hr>\n<h2 id=\"troubleshooting-common-dotfile-sync-problems\">Troubleshooting Common Dotfile Sync Problems<\/h2>\n<p><strong>Quick Answer:<\/strong> 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, <strong>pause or stop syncing before you change anything<\/strong>, and restore repository state only from a known-good Git copy or backup \u2014 never from the synced copy. The three cases below apply that order to specific symptoms.<\/p>\n<h3 id=\"issue-1-you-see-conflict-copies-in-the-synced-folder\">Issue 1: You see conflict copies in the synced folder<\/h3>\n<ul>\n<li><strong>Cause:<\/strong> the same file was edited on two devices before sync completed.<\/li>\n<li><strong>Fix:<\/strong> open both copies, compare them by hand, keep the intended version, delete the conflict copy. Then avoid concurrent edits to the same file.<\/li>\n<li><strong>Boundary reminder:<\/strong> the tool preserved the copy; it did not merge it.<\/li>\n<\/ul>\n<h3 id=\"issue-2-a-git-repository-ended-up-inside-the-synced-folder\">Issue 2: A Git repository ended up inside the synced folder<\/h3>\n<ul>\n<li><strong>Cause:<\/strong> a <code>.git<\/code> directory or working tree was included in the folder added to sync, so two machines mirrored repository state.<\/li>\n<li><strong>Fix:<\/strong> Do <strong>not<\/strong> delete or move the repository while sync is active \u2014 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:<br \/>\n  1. <strong>Pause or stop syncing<\/strong> on the affected machine before you touch the folder.<br \/>\n  2. <strong>Preserve a separate copy<\/strong> of the repository somewhere outside the synced folder, so you have your own snapshot independent of the sync service.<br \/>\n  3. <strong>Consult the current client documentation<\/strong> for the version you are running, since the correct way to take a folder out of sync depends on the client.<br \/>\n  4. <strong>Restore repository state only from a known-good Git copy or backup<\/strong> \u2014 a clean clone from your remote or a verified local backup \u2014 and follow Git&rsquo;s own guidance for recovery.<\/li>\n<li><strong>Boundary reminder:<\/strong> this is why Step 2 requires verifying the folder&rsquo;s contents <em>before<\/em> it is added to sync, and why Nutstore is not recommended for code sync. A synced copy is not a recovery source.<\/li>\n<\/ul>\n<h3 id=\"issue-3-a-file-is-stale-or-missing-on-the-second-machine\">Issue 3: A file is stale or missing on the second machine<\/h3>\n<ul>\n<li><strong>Cause candidates:<\/strong> 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).<\/li>\n<li><strong>Fix:<\/strong> 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.<\/li>\n<li><strong>Boundary reminder:<\/strong> sync cannot deliver edits that were never saved or uploaded.<\/li>\n<\/ul>\n<hr>\n<h2 id=\"frequently-asked-questions\">Frequently Asked Questions<\/h2>\n<p><strong>1. Can cloud sync replace Git for dotfiles?<\/strong><br \/>\nNo. 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.<\/p>\n<p><strong>2. Is it safe to sync a <code>.git<\/code> folder?<\/strong><br \/>\nNo \u2014 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.<\/p>\n<p><strong>3. Should dotfiles be in Git or in cloud storage?<\/strong><br \/>\nSplit them. Repository files stay in Git; ordinary supporting files may be sync candidates \u2014 but only after you confirm the folder&rsquo;s contents and each file&rsquo;s suitability. Do not sync arbitrary portions of your home or config directories.<\/p>\n<p><strong>4. How do I sync config files between Linux and macOS?<\/strong><br \/>\nInstall the desktop client on both machines, keep OS-specific variants as distinct files, and add one dedicated ordinary folder to sync \u2014 following the current client guidance for your version. <strong>Windows, macOS, and Linux desktops are supported<\/strong>, and syncing a chosen folder <strong>does not require command-line links<\/strong>.<\/p>\n<p><strong>5. Will sync merge my edits if two machines change the same file?<\/strong><br \/>\nNo. Conflict copies are preserved rather than overwritten, so you can inspect what changed \u2014 but preserving a copy is not merging, and it does not guarantee zero data loss.<\/p>\n<p><strong>6. Does Nutstore work on Linux?<\/strong><br \/>\nYes \u2014 <strong>Linux is among the supported desktop platforms, alongside Windows and macOS<\/strong> (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.<\/p>\n<hr>\n<h2 id=\"summary-and-next-steps\">Summary and Next Steps<\/h2>\n<p>The decision rule, in three lines:<\/p>\n<ul>\n<li><strong>Git stays in charge of code and repositories.<\/strong><\/li>\n<li><strong>Sync handles one dedicated ordinary folder of supporting files you want on more than one machine.<\/strong><\/li>\n<li><strong>Conflict copies get reviewed promptly, and an independent backup stays in place \u2014 sync does not merge edits or guarantee zero data loss.<\/strong><\/li>\n<\/ul>\n<p>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.<\/p>\n<p>This workflow is most valuable to developers who work across several machines \u2014 and often as part of a team that shares configs and documentation. That is where the <strong>Nutstore Team plan<\/strong> fits, and you can start with a <strong>20-day free trial<\/strong>.<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/www.jianguoyun.com\/s\/campaign\/cpclanding\/team?sch=AIcb\">Start the Team plan 20-day free trial<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/www.jianguoyun.com\/s\/campaign\/cpclanding\/main?sch=AIcb\">Explore the main Nutstore product page<\/a><\/strong><\/li>\n<\/ul>\n<p>And the boundary, stated once more for your protection: <strong>Nutstore is not recommended for code sync and is not a substitute for Git, a repository host, or a merge workflow.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to sync dotfiles across Windows, macOS, and Linux while keeping repositories and source code under Git. This practical guide helps you choose which ordinary supporting files may belong in cloud sync, set up one dedicated folder, and handle conflict copies safely. Nutstore is not a Git replacement or recommended for code sync; keep independent backups and avoid editing the same synced file on two devices at once.<\/p>\n","protected":false},"author":1,"featured_media":668,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[94,74],"tags":[8,260,56,45,28,259,12,258],"_links":{"self":[{"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=\/wp\/v2\/posts\/669"}],"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=669"}],"version-history":[{"count":0,"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=\/wp\/v2\/posts\/669\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=\/wp\/v2\/media\/668"}],"wp:attachment":[{"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jianguoyun.com\/en\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}