Last active
September 12, 2016 13:53
-
-
Save arieljannai/db6c8704ff753cc06bb6af7befec680d to your computer and use it in GitHub Desktop.
Remove port from git remote origin
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
find . -maxdepth 5 -name .git -type d | xargs -i bash -c 'p={}; echo ${p:0:-5}; git -C "{}" remote get-url origin; echo ""' |
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
echo `git remote get-url origin` && git remote get-url origin | git remote set-url origin `sed -e 's/:8443//'` && git remote get-url origin |
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
find . -name .git -type d | xargs -i bash -c 'echo `git -C "{}" remote get-url origin` && git -C "{}" remote get-url origin | git -C "{}" remote set-url origin `sed -e 's/:8443//'`; git -C "{}" remote get-url origin' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment