Add support for .gitconfig and fix a link bug