Skip to content

Instantly share code, notes, and snippets.

View logc's full-sized avatar

Luis Osa logc

View GitHub Profile
@maciej
maciej / git-set-committer-to-author.sh
Created June 27, 2013 11:40
git: Changes a commit's GIT_COMMITER_NAME|EMAIL to GIT_AUTHOR_NAME|EMAIL
#!/bin/sh
#
# Changes a commit's GIT_COMMITER_NAME|EMAIL to GIT_AUTHOR_NAME|EMAIL
#
# set-commiter-to-author [-f] commit-to-change
#
# If -f is supplied it is passed to "git filter-branch".
#
# If <branch-to-rewrite> is not provided or is empty HEAD will be used.
# Use "--all" or a space separated list (e.g. "master next") to rewrite