abentley / oaf

A Git client that brings a more user-friendly CLI to Git.
Apache License 2.0
9 stars 1 forks source link

squash-commits command #33

Closed abentley closed 3 years ago

abentley commented 3 years ago

The equivalent of: $ PARENT=$(git merge-base origin/develop HEAD) $ NEW_HEAD=$(git commit-tree -p $PARENT HEAD^{tree} -m "message") $ git reset --hard $NEW_HEAD

except as a command, with target and message as parameters.

Maybe concatenate all the old log messages if none specified?