You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A quick hack that might be fragile, but also Just Might Work for most cases:
git commit -am message --author=.
per the docs git-commit assumes the --author argument to be of the form: A U Thor <author@example.com>.
Otherwise is assumed to be a pattern and is used to search for an existing commit by that author (i.e. rev-list --all -i --author=); the commit author is then copied from the first such commit found.
So, in short: commit --author=. should copy the authorship from the previous commit since . as a regex will match all commits.