1、修改項目目錄下.idea => vcs.xml => <mapping directory="" vcs=""/>
2、刪除項目目錄下的.git
3、Preferences => Version Control => 添加Git
4、VCS => import into Version Control =>Share Project on GitHub
5、VCS => Git =>Add / Commit File / Push
1、修改項目目錄下.idea => vcs.xml => <mapping directory="" vcs=""/>
2、刪除項目目錄下的.git
3、Preferences => Version Control => 添加Git
4、VCS => import into Version Control =>Share Project on GitHub
5、VCS => Git =>Add / Commit File / Push
1、安裝Git 2、gitlab上創建項目 3、配置ssh: 打開git bash=》開始-git文件夾-git bash 輸入ssh-keygen回車,輸入y,一直回車 在輸入:cat ~/.ssh