Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 375 Bytes

force-rebase.md

File metadata and controls

16 lines (11 loc) · 375 Bytes

Force rebase

Sometimes, you really want to rebase, but you've already pushed

So, disgusted with yourself, you force push it up

What about your poor teammates? They need to be told BEFORE you do it, and they need to be okay with it

Once finished, here's how they update;

git checkout {{branch-name}}
git fetch
git reset --hard origin/{{branch-name}}