git git git
返回版本信息,则安装成功
git config - -global user.name “yourName”
git config - -global user.email “yourEmail”
git config - -global mergo.tool “kdif3”
git config - -global core.autocrlf false
git config - -global gui.encoding utf -8
git config - -global core.quotepath off
git config - -global core.ignorecase false
ssh-keygen -t rsa -C “yourEmail”
ssh-add ~/.ssh/id_rsa
eval ‘ssh-agent’ (‘ ’ 是~键上的`) 然后再执行上方命令
cat ~/.ssh/id_rsa.pub
使用的网站不同配置方式稍有差异,基本类似。
Access denied exec request failed on channel 0 fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.