From 7277e5c1ca06d6f1a74ff9755669d11ee7a9c4ce Mon Sep 17 00:00:00 2001 From: "C.J. Jameson" Date: Mon, 12 Feb 2018 13:58:52 -0800 Subject: [PATCH] Use SSH to push to public Github repositories Addresses #130 http://engineering.pivotal.io/post/git-push-instead-of/ --- scripts/common/git.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/common/git.sh b/scripts/common/git.sh index 818d0c52..170d2eb2 100755 --- a/scripts/common/git.sh +++ b/scripts/common/git.sh @@ -17,3 +17,5 @@ echo echo "Setting global Git configurations" git config --global core.editor /usr/bin/vim git config --global transfer.fsckobjects true +git config --global url.git@github.com:.pushInsteadOf https://github.com/ +git config --global --add url.git@github.com:.pushInsteadOf git://github.com/