1、git下载
win:
https://git-scm.com/download/win
Mac:brew install git
2、验证git是否安装成功
git --version
3、git配置
a、先注册github或者gitee账号
b、配置用户名、邮箱名称
$ git config --global user.name "your name"
$ git config --global user.email "your email"
c、验证用户名和邮箱名称是否配置成功
$ git config --global --list
4、生成密钥
a、
$ ssh-keygen -t rsa -C "your email"
b、连续敲三下回车
c、对应目录下找到生成的公钥和私钥
5、gitee配置公钥

6、pycharm配置git:Preferences-Version Control-git

网友评论