GIT-SYNC(1)
π git-sync β bestie edition
okay so this is a page from the Git Extras manual, section 1, and it's all about git-sync. pull up a chair, we're doing this together π«Ά
β¨ NAME β¨
git-sync β sync ur local branch with the remote branch. that's it. that's the whole job. lowkey iconic. π
πΈ SYNOPSIS πΈ
git sync [--soft] [--force] [ <remote> <branch> ]
π¦ DESCRIPTION π¦
so basically: it syncs ur local branch with <remote>/<branch>. match made in heaven fr fr.
when u don't say <remote> and <branch> on the command line, it just uses the upstream of ur local branch by default. it knows what u meant. main character energy. β¨
β οΈ bestie listen to me: tracked changes will be reset, and untracked files and directories will be removed β unless u add-s(--soft). the vibes here are "irreversible", so read that twice. π
π OPTIONS π
--softor-sβ add this flag if u want to preserve untracked files and directories. she's protective. she's gentle. she's not deleting ur stuff. π₯Ίπ--forceor-fβ add this flag to disable interaction. no questions asked, no prompting, just vibes and motion. π₯
π EXAMPLES π
sync local branch with its upstream β the classic, no notes:
$ git sync
sync local branch with origin/master β specifying who we're matching energies with:
$ git sync origin master
sync without cleaning untracked files β soft girl settings ON:
$ git sync -s origin master
sync without interaction β no talking, just doing:
$ git sync -f
π AUTHOR π
written by Takuma Yamaguchi <kumon0587@gmail.com>. a legend, an icon, and they were the moment. π«Ά
π REPORTING BUGS π
found a bug?? not me finding bugs π pls report them here, the group chat is always open:
<https://github.com/tj/git-extras/issues>
π§ SEE ALSO π§
more git-extras lore, the whole cinematic universe:
<https://github.com/tj/git-extras>
and that's the page, bestie π authored by the Git Extras girlies, dated May 2026, and it's giving absolutely everything β¨π π ngl u ate this tutorial, no cap fr fr π¦πΈ
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms