From 6ed6f49147e4b94e66d12d38a9d3c68f10b97673 Mon Sep 17 00:00:00 2001 From: Matthias Kerk Date: Fri, 8 Jun 2018 13:38:51 +0200 Subject: [PATCH] Add the git+ssh rewrite config settings --- docs/FAQ.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/FAQ.md b/docs/FAQ.md index 0f6eb9fd6e..7a9c1e912a 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -203,6 +203,16 @@ machine github.com Once you have set that up, dep will automatically use that Token to authenticate to the repositories. +## How do I get dep to authenticate via SSH to a git repo? + +You can rewrite the repo url and use the git+ssh shema with follow example: + +``` +git config --global url."git@github.yourEnterprise.com:".insteadOf "https://github.yourEnterprise.com/" + +``` + + ## Behavior ### How does `dep` decide what version of a dependency to use?