Sync the current local branch with the remote main branch

git sync

  • Sync local branches with remote branches.
    Part of `git-extras`.
    More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-sync>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git sync origin main

click the source code to copy install git sync on any operating system with command-not-found.com