選擇需要的項目創建本地Git倉庫
添加到暫存區
第一次提交

或者點擊這里
寫備注并commit
推送遠程倉庫
填寫地址
解決上圖警告
右鍵打開項目,輸入
git pull origin master –allow-unrelated-historiesgit push -u origin master -f
推送成功
idea項目推送github及克隆github項目
創建倉庫
idea克隆
登錄,成功克隆
推送本地項目到遠程倉庫
和上述一樣,地址變化了而已
推送失敗打開git窗口輸入
git config --global --unset https.proxy
git config --global --unset http.proxy