-
git merge-base
your_current_branch
master
-
now copy the generated hash
70277395bada59ad24b789d219a1ded550218746
-
g.it rebase --interactive
${HASH}
-
open vi and change
pick
at lines tos
(except first line) -
2,3s/pick/s/g 5.1 (2,3) from second to third line, changes
pick
tos
-
:wq (write and quit vi) Obs: If you have conflicts at merge, solve it bitch
-
Then vi opens again and you need to delete other commit messages except the first
-
git config --global push.default simple
-
git push -f origin
your_current_branch
-
GG!
Last active
August 29, 2015 14:16
-
-
Save WagnerMoreira/8c6e6897c276bece2a53 to your computer and use it in GitHub Desktop.
Squirtle Squirtle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment