- 说明 :文章主要讲述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