unixorn/git-extra-commands

View on GitHub
bin/git-undo

Summary

Maintainability
Test Coverage
#!/bin/sh
#
# Undo your last commit, but don't throw away your changes
#
# From: https://stackoverflow.com/a/24569160

exec git reset --soft HEAD^