Skip to content

Instantly share code, notes, and snippets.

View glhrmv's full-sized avatar

Guilherme glhrmv

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