git checkout feat1
git rebase master
git checkout feat2
git rebase --onto feat1 origin/feat1 feat2
git checkout feat3
git rebase --onto feat2 origin/feat2 feat3
git push -f feat1 feat2 feat3
git checkout feat1
git fetch
git rebase origin/master
git checkout master
git merge --ff-only feat1
git push