commands.sh

git sync

all

Sync local branches with remote branches. Part of `git-extras`.

More info →

Options (1)

-s, --softboolean

Sync without cleaning untracked files

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

Examples (3)

Sync the current local branch with its remote branch

Sync the current local branch with the remote main branch

git sync origin main

Sync without cleaning untracked files

git sync [-s|--soft] remote_name branch_name
made by @shridhargupta | data from tldr-pages