Windows下安装、配置git等
安装:
https://git-scm.com/download/win
配置:
- 配置用户名和邮箱
git config --global user.name "你的GitHub用户名"
git config --global user.email "你的GitHub注册邮箱"
- 生成密钥
ssh-keygen -t rsa -C "你的GitHub注册邮箱"
- 在github账号中添加SSH key
测试:
- git add / commit / push ....
- 注意事项:
在clone代码时,复制SSH链接,否则可能会出现一些报错,
Cloning into 'temp_private'... fatal: unable to access 'https://github.com/jackie2455/temp_private.git/': Failed to connect to github.com port 443: Connection timed out

浙公网安备 33010602011771号