Created
July 20, 2017 10:26
-
-
Save alexbonhomme/5cb5c560ebd841f7f53aff42ea1f03a8 to your computer and use it in GitHub Desktop.
Update Github username in local repos
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
# Update and convert old HTTPS sources | |
find . -path "*/.git/config" -exec sed -i '' -e "s,url = https://github.com/blckshrk,url = [email protected]:alexbonhomme,g" {} \; | |
# Update SSH sources | |
find . -path "*/.git/config" -exec sed -i '' -e "s,url = [email protected]:blckshrk,url = [email protected]:alexbonhomme,g" {} \; | |
# checks | |
find . -path "*/.git/config" -print0 | xargs -0 grep 'alexbonhomme' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment