1. 程式人生 > >idea新建一個spring專案上傳到Github

idea新建一個spring專案上傳到Github

因為上班一直用的springboot,導致現在用idea搞一個spring專案有點生疏。

所以記錄下來。

另外的匯入pom依賴以及配置檔案什麼的 

本地專案上傳到github

1.右擊 Git Bash Here,在命令列中,輸入“git init”,使資料夾加入git管理; 2.輸入“git add .”(不要漏了“.”),將資料夾全部內容新增到git。 3.輸入“git commit -m "first commit"”(“git commit -m "提交資訊"”) 4.輸入“git remote add origin https://github.com/tianyuan666/springdemo.git

(git remote add origin 你自己的https地址),連線你的guthub倉庫。 5.輸入“git push -u origin master”,上傳專案到Github。這裡會要求輸入Github的賬號密碼,按要求輸入就可以。

github新建專案

github專案地址

git clone 加地址拉到本地