git sync

Sync local branches with remote branches. Part of git-extras. More information: https://manned.org/git-sync.

git sync

git sync origin main

git sync {{[-s|--soft]}} {{remote_name}} {{branch_name}}