Last active
December 29, 2024 12:06
-
Star
(337)
You must be signed in to star a gist -
Fork
(53)
You must be signed in to fork a gist
-
-
Save dmitshur/6927554 to your computer and use it in GitHub Desktop.
Revisions
-
dmitshur revised this gist
Jul 14, 2024 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,9 @@ **WARNING:** If you're reading this in 2021 or later, you're likely better served by reading: - https://go.dev/cmd/go#hdr-Configuration_for_downloading_non_public_code - https://go.dev/ref/mod#private-modules (This gist was created in 2013 and targeted the legacy GOPATH mode.) ```bash $ ssh -A vm -
dmitshur revised this gist
Feb 14, 2021 . No changes.There are no files selected for viewing
-
dmitshur revised this gist
Feb 14, 2021 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ **WARNING:** This gist was created in 2013 and targets the legacy GOPATH mode. If you're reading this in 2021 or later, you're likely better served by reading https://tip.golang.org/cmd/go/#hdr-Configuration_for_downloading_non_public_code and https://golang.org/ref/mod#private-modules. ```bash $ ssh -A vm $ git config --global url."[email protected]:".insteadOf "https://github.com/" @@ -10,6 +12,6 @@ Success! Sources: - https://docs.github.com/en/developers/overview/using-ssh-agent-forwarding - https://golang.org/doc/faq#git_https - https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf -
shurcooL revised this gist
Oct 11, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ ```bash $ ssh -A vm $ git config --global url."[email protected]:".insteadOf "https://github.com/" $ cat ~/.gitconfig [url "[email protected]:"] insteadOf = https://github.com/ -
shurcooL revised this gist
Oct 11, 2013 . No changes.There are no files selected for viewing
-
shurcooL revised this gist
Oct 11, 2013 . No changes.There are no files selected for viewing
-
shurcooL revised this gist
Oct 10, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ ```bash $ ssh -A vm $ cat ~/.gitconfig [url "[email protected]:"] insteadOf = https://github.com/ $ go get github.com/private/repo && echo Success! Success! -
shurcooL revised this gist
Oct 10, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,4 +11,4 @@ Sources: - https://help.github.com/articles/which-remote-url-should-i-use #You can also use SSH agent forwarding with your deploy script to avoid managing keys on the server. - http://golang.org/doc/faq #Why does "go get" use HTTPS when cloning a repository? - https://www.kernel.org/pub/software/scm/git/docs/git-config.html #url.\<base\>.insteadOf -
shurcooL revised this gist
Oct 10, 2013 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,6 @@ Success! Sources: - https://help.github.com/articles/which-remote-url-should-i-use #You can also use SSH agent forwarding with your deploy script to avoid managing keys on the server. - http://golang.org/doc/faq #Why does "go get" use HTTPS when cloning a repository? - https://www.kernel.org/pub/software/scm/git/docs/git-config.html #url.<base>.insteadOf -
shurcooL created this gist
Oct 10, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ ```bash $ ssh -A vm $ cat ~/.gitconfig url "[email protected]:"] insteadOf = https://github.com/ $ go get github.com/private/repo && echo Success! Success! ``` Sources: https://help.github.com/articles/which-remote-url-should-i-use #You can also use SSH agent forwarding with your deploy script to avoid managing keys on the server. http://golang.org/doc/faq #Why does "go get" use HTTPS when cloning a repository? https://www.kernel.org/pub/software/scm/git/docs/git-config.html #url.<base>.insteadOf