Skip to content

Instantly share code, notes, and snippets.

@glhrmv
glhrmv / update_commit_email.sh
Last active Oct 16, 2019
Change commit author & email in all commits of a repository
View update_commit_email.sh
#!/bin/sh
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <repo owner> <repo name>"
fi
REPO_OWNER="$1"
REPO_NAME="$2.git"
# Clone the repo