← 返回项目← All projects

Awesome-Git-Autosync

Git 仓库自动同步 · Open source · 2026

Auto-sync Git repos across machines · 2026

A ~4 KB script that keeps your project folders identical on every computer you own. No install, no dependencies, no remembering to commit.

一个约 4KB 的脚本,让你所有电脑上的项目文件夹永远保持一致。不装软件、没有依赖、再也不用记得「先提交一下」。

书房台式机 客厅笔记本 Git 每隔几分钟,自动双向同步一次

The problem: two computers, one truth? 💻🖥

痛点:两台电脑,谁是最新版?💻🖥

You write notes on the desktop, continue on the laptop — and sooner or later you email yourself a zip, or lose an evening of work. Git solves this, but only if you remember to commit, pull and push. Every. Single. Time.

白天在台式机上写文档,晚上用笔记本接着干——总有一天你会给自己发一个压缩包,或者弄丢一晚上的工作。Git 本来能解决,但前提是你每次都记得 commit、pull、push。每次、都、记得。

This script simply does the remembering for you.

这个脚本替你「记得」。

Setup: double-click, once ⚡

安装:双击一次,完事 ⚡

Clone the repo, double-click setup. It registers itself to start with your computer and begins syncing immediately. Then tell it which folders to watch — by writing paths into a plain text file.

克隆仓库,双击 setup。它会注册成开机自启并立刻开始同步。然后告诉它要看哪些文件夹——方式就是往一个纯文本文件里写路径。

repos.txt D:\Code\my-blog D:\Notes\thesis # D:\old\paused ← 暂停就加个# R:\Code\MY project\alidadei.github.io 🔁 自动循环开始 开机自启 · 静默运行

What it does every few minutes 🔄

每隔几分钟它做的事 🔄

存档 commit 取更新 pull 上传 push 收集 add 📁 你的文件夹 改了间隔?下一轮自动生效 两份日志:近况 + 全历史 多分支同步:取消注释即可

Why it can be this small 🪶

为什么能做得这么小 🪶

Because it refuses to install anything. Windows gets PowerShell, macOS/Linux get a shell script — the tools every computer already has. The real bottleneck is your network upload speed, not the script; its own CPU use is essentially zero.

因为它拒绝安装任何东西。Windows 用 PowerShell,macOS/Linux 用 shell 脚本——都是每台电脑本来就有的工具。真正的瓶颈是网络上传速度而不是脚本本身;它的 CPU 占用基本为零。

Honest fit-check 🤝

诚实的适用边界 🤝

✓ Great for: notes, documents, personal projects, "save my work periodically".
✗ Not for: teams editing at the same time, or curated commit histories.

✓ 适合:笔记、文档、个人项目、「定时帮我保存工作进度」。
✗ 不适合:多人同时编辑,或需要精心雕琢 commit 历史的场合。

~4 KBcore script核心脚本体积
0dependencies外部依赖
2,100+commits it made for me它替我提交的次数
3platforms (Win ✓ macOS ✓)平台(Win ✓ macOS ✓)