更新时间:2022-05-18 23:44:44
一、在码云上创建项目
二、克隆项目下来
2.1、复制项目URL
2.2、克隆到本地
右键-->Git Bash Here,再弹出框中输入:git clone 项目URL
1
|
git clone https://git.oschina.net/loganxiaoliu/springboot-demo-2-1.git |
如:
三、提交代码上去
1、拷贝代码到克隆下来的目录下
2、添加到本地
如:
1
|
git add . |
回车
再提交
如:
1
|
git commit -m 'init project'
|
回车
3、推到服务器上去
git push
回车
效果: