本機已經安裝了git並添加SSH Key
見另一篇博客:https://blog.csdn.net/qq_44859600/article/details/100567577
在settings中添加自己的github信息
1、打開Settings==>Version Control===>git
2、在如圖(2)所示位置path to Git executable中添加自己的git安裝路徑
點擊test按鈕,彈出一個Sucess的對話框即成功
3、github賬號的添加
創建github倉庫
1、點擊pycharm最上面一行的命令
VCS==>import into Version Control==>Share Project on Github
彈出如下對話框,填寫倉庫的信息,點擊share
commit 文件
點擊pycharm右上角,git欄的綠色對勾
提交commit