kowainik / hit-on

:octocat: Kowainik Git Workflow Helper Tool
https://kowainik.github.io/projects/hit-on
Mozilla Public License 2.0
76 stars 13 forks source link

Add `--hard` or `--force` option to the `hit sync` command #136

Closed chshersh closed 4 years ago

chshersh commented 4 years ago

Sometimes remote branch is changed differently (from another machine for example). In that case simple hit sync might not work since by default it will rebase on top of the branch from branch. So sometimes it would be nice to add a flag which is equivalent to:

git fetch origin ...branch-name...
git reset --hard origin/branch-name