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 πŸŽ€

  • --soft or -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. πŸ₯ΊπŸ’–
  • --force or -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