This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git filter-branch -f --env-filter ' | |
OLD_EMAIL="old.email@mail.com" | |
CORRECT_NAME="correct name" | |
CORRECT_EMAIL="correct.email@mail.com" | |
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
then | |
export GIT_COMMITTER_NAME="$CORRECT_NAME" | |
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# list all repo, and parse their names, and place into 'repos' variable | |
repos=$( | |
curl \ | |
-X GET \ | |
-H 'Authorization: Bearer TOKEN' \ | |
-H 'Accept: application/json' \ | |
'https://api.github.com/user/repos?visibility=private' \ |