cloudgen

cloudgen / git-sync

Public

Scans direct subfolders for Git repos (.git), resets --hard HEAD, pulls origin main. Portable, self-installing β€” works via curl | sh on Linux/macOS/Alpine/BSD.

56
0
69% credibility
Found May 04, 2026 at 56 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Shell
AI Summary

A self-contained script that scans a directory for project folders, resets them to the latest committed state, and pulls updates from their online sources.

How It Works

1
πŸ” Discover the tool

You hear about a handy little helper that refreshes all your project folders in one go, keeping everything up to date.

2
πŸ“₯ Set it up easily

You grab it from the web and add it to your computer with a single, safe command that checks everything first.

3
✨ Point it at your folders

You name the folder full of your projects, and it scans inside to update each one to the newest version.

4
πŸ”„ Watch the magic

It carefully resets and refreshes every project folder, making sure they're all current without any fuss.

5
Choose next
πŸ”„
Keep refreshing

Run it anytime to update your projects again.

πŸ—‘οΈ
Remove it

Easily take it off your computer if you don't need it anymore.

6
πŸ”§ Stay in control

Update it to the latest version or check its status whenever you like.

βœ… Projects are perfect

All your project folders are now fully updated and ready for you to dive into your work.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 56 to 56 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is git-sync?

git-sync is a POSIX shell script that scans a folder's direct subfolders for git repos, runs git reset --hard HEAD, and pulls from origin main to synchronize them. It solves the hassle of manually updating multiple local repos, like syncing Obsidian vaults or Grafana dashboards with GitHub. Installs via curl | sh on Linux, macOS, Alpine, or BSD, with zero dependencies and self-update or uninstall commands.

Why is it gaining traction?

Its dead-simple one-liner install with checksum verification beats clunky alternatives for git sync branches with remote or git sync local with GitHub. User-facing perks like --json output, --quiet mode, and multi-shell PATH support make it handy for automation in Airflow git sync GitHub workflows or security scans GitHub setups. The defensive design ensures reliable git synchronize across environments without surprises.

Who should use this?

DevOps engineers managing project folders full of repos, like git sync Grafana GitHub dashboards or Obsidian git sync GitHub notes. Airflow users needing git sync branch with main, or anyone syncing git repo to GitHub forks and local branches with remote. Avoid if you need multi-branch support beyond main.

Verdict

Try it for quick folder-wide syncsβ€”solid docs and MIT license make it low-risk despite 56 stars and 0.7% credibility score signaling early maturity. Lacks broad testing visibility, so pair with your own checks for production.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.