- 說明 :文章主要講述idea創建maven工程上傳至碼雲(項目首次提交)
- 碼雲上新建倉庫
- 本地創建maven工程,父工程爲pom
- 提交代碼上去
A.創建碼雲上創建倉庫()
B.本地創建maven工程,建好後進入工程目錄(工程名稱最好與倉庫名稱一致,不一致也可以提交)
C.右鍵git bash敲git命令 當然了碼雲上有現成的 (清空倉庫後有對應的命令),執行完即可上傳成功
haoha@haohaounique MINGW64 /d/code/eureka[此處爲代碼路徑]
過程爲 git初始化--> 添加到本地 --> 提交全部(-a參數作用)文件到本地 加註釋-->遠程設置-->推送代碼
$ git init
$ git add .
$ git commit -a -m 'first commit'
$ git remote add origin https://gitee.com/haohaounique/eureka.git
$ git push -u origin master