Add credentials handling for git and github.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>