This file contains 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 | |
GIT_REPOSITORY="https://github.com/user/repo.git" | |
OLD_EMAIL="your-old-email@example.com" | |
CORRECT_NAME="Your Correct Name" | |
CORRECT_EMAIL="your-correct-email@example.com" | |
git clone --bare $GIT_REPOSITORY TMP_REPO_FIX | |
cd TMP_REPO_FIX | |
git filter-branch --env-filter ' |
This file contains 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
<VirtualHost *:80> | |
ServerName example.com | |
ServerAlias www.example.com | |
ErrorLog ${APACHE_LOG_DIR}/example.com-error.log | |
CustomLog ${APACHE_LOG_DIR}/example.com-access.log combined | |
RewriteEngine on | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L] | |
</VirtualHost> |