hub-sync(1)

okay so bestie, this is the hub-sync(1) page from the hub manual πŸ’… β€” and it’s literally giving β€œfetch git objects from upstream and update local branches” energy. periodt.

πŸ’– NAME πŸ’–

hub-sync β€” fetch git objects from upstream and update local branches 🫢 that’s the whole assignment.

πŸ¦‹ SYNOPSIS πŸ¦‹

hub sync [--color]

okay so when you run it, here’s the vibe check πŸ‘‘:

  • if the local branch is outdated, fast-forward it;
  • if the local branch contains unpushed work, warn about it;
  • if the branch seems merged and its upstream branch was deleted, delete it.

and one more lil rule: if a local branch does not have any upstream configuration, but has a same-named branch on the remote, treat that as its upstream branch ✨

πŸŽ€ OPTIONS πŸŽ€

  • --color[=WHEN] β€” enable colored output even if stdout is not a terminal πŸ’… WHEN can be "always" (the default for --color), "never", or "auto" (the default).

🌈 SEE ALSO 🌈


okay bye bestie πŸ’– this was hub-sync(1) from hub version 2.14.2, dated 07 Jan 2024 β€” slay, hydrate, and may your branches always fast-forward 🫢✨🌸

πŸ“¦ where this page comes from