Please help me to write a batch file for git rebase
which unites two last commits: HEAD
and HEAD~1
in current branch into one without using interactive editor.
Assume that both commits have single parent and are not pushed yet.
a683ec1 Not pushed 2
c7b480a Not pushed 1
f0e81fb Pushed
I want to leave "Pushed" commit and one commit behind it that will contain "Not pushed 1" + "Not pushed 2" in a final state of "Not pushed 2".