前提:下载git

设置Git路径

登录Github

此时自动打开浏览器,并打开连接页面,点击 Authorize GitHub。登录:

创建本地仓库

提交到Github
填写初始提交相关信息

origin,它们只是远程服务器的一个别名,否则你就要写整个地址,显然写整个地址太长太麻烦。

初次提交的文件

查看远程是否创建成功

修改本地:(注意,你修改的是本地git仓库中的项目--在上面步骤中已经创建了git仓库)

commit:

puah:推送到GitHub远程仓库

成功提交
若遇到 pycharm push不能连接到 GitHub,尝试cmd:执行 ipconfig /flushdns
协同操作:
PyCharm+GitHub 上传/下载项目 + 更新代码_Kenn7的博客-CSDN博客Git系列(3)pycharm多人协作开发Git使用_pycharm提交代码到git多人_小帅吖的博客-CSDN博客