The problem
You have been working hard on that feature for many days and now it's done.
Unfortunately, you have made a lot commit and yo...
For further actions, you may consider blocking this person and/or reporting abuse
You can pass the output of the
wc
command tosed
to remove the any whitespace.This should work:
git rebase -i HEAD~"$(git rev-list 33b14c62b...33ad6cecf | wc -l | sed 's/ //g')"
Thanks for this input dear Federico,
Let me try to edit the post
Nice post Espoir! Not sure how to combine the two commands into one, but I think it's nice to have it as two commands as well.
Hi thanks really helpful. Could you please show how to make a git alias from this please It would be extremely helpful