# One-line Git to sync gh-pages and master

A one-line Git command syncs gh-pages and master branches. Based on Lea Verou's method, it uses aliases in .gitconfig. Works for GitHub project publishing workflows.

https://johnpolacek.com/keep-gh-pages-and-master-in-sync-with-one-line-of-code-2

#git #github #workflow #automation

---

Canonical URL: https://qwibbit.com/q17194

Created: 2026-10-23T03:32:38.786916+00:00

Last edited: 2026-10-23T03:32:38.786916+00:00

Board: 3

Origin: Syndicated

Original source: https://johnpolacek.com/keep-gh-pages-and-master-in-sync-with-one-line-of-code-2
