使用IDEA 和 Git上傳自己編譯的spring源碼到自己的GitHub上去
1.首先進入自己的GitHub頁面,創建一個repository


2.在IDEA打開項目,創建本地倉庫


3.右鍵項目,添加代碼到Git

4.提交代碼到Git

5.開始遠程提交項目到GitHub上
進入項目所在目錄,執行命令:git remote add origin https://github.com/LoveWK/mySpring.git

如果遇到 remote origin already exists.這個錯誤,執行以下命令:git remote rm origin

重新執行:git remote add origin https://github.com/LoveWK/mySpring.git

再執行命令:git push -u origin master

在等待項目上傳成功后,我們就可以去自己的GitHub上查看自己的項目了

在使用git時遇到的一些問題:
1.遇到:SSL certificate problem: unable to get local issuer certificate的問題

問題原因是:原來是找不到本地的證書
解決辦法:命令:git config --global http.sslVerify false

設置git的代理:
命令:git config --global http.proxy 代理地址

