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.

git sync

git sync origin main

git sync -s {{remote_name}} {{branch_name}}