Skip to content

Instantly share code, notes, and snippets.

View nelup20's full-sized avatar
😭
How can ISAs be real if our macro-ops aren't real...

Nelu Platonov nelup20

😭
How can ISAs be real if our macro-ops aren't real...
View GitHub Profile
@nelup20
nelup20 / git-reset-author-email.sh
Last active February 9, 2024 12:00
Shell script to change the author email in past commits to a new email (so you don't accidentally change ALL emails in case there are multiple authors). Force pushes to main/master branch. Use at your own risk!
#!/usr/bin/env bash
if ! [ "$(command -v git-filter-repo)" ]; then
echo 'Error: git-filter-repo is not installed. If you have pip: "pip install git-filter-repo"';
exit 1;
fi
# HTTPS or SSH
repo_url=$1;