1.打开pycharm ,点击 file——Default-setting——version control
2.配置github账号密码
3.Path to Git executable中填写git路径