码迷,mamicode.com
首页 > 其他好文 > 详细

GIT部署项目到码云

时间:2019-07-09 19:38:51      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:rsa   git init   提示   效果   mamicode   email   matching   权限   邮箱   

进行基础设置
git config --global user.name "账号名"
git config --global user.email "账号邮箱@qq.com"
git config --global core.autocrlf true --提示:“warning: CRLF will be replaced by LF in”设置
git config --global push.default matching --提示:“warning: push.default 未设置”设置

生成密钥

ssh-keygen -t rsa -C "账号邮箱@qq.com"

 

码云设置:

登录后,右上角设置

技术图片

 

进行SSH公钥设置,因为在新建项目里设置公钥只有读取的权限,没有推送的权限

技术图片

 

在码云仓库新建一个仓库用来存放代码

技术图片

 

 技术图片

在码云获取 git地址

 技术图片

 

  

 代码里调用该命令

git init
git remote add origin git地址
git add .
git commit -m "laravel58初始化"
git pull --rebase git地址 master
git push git地址

结束,最终效果

技术图片

 

GIT部署项目到码云

标签:rsa   git init   提示   效果   mamicode   email   matching   权限   邮箱   

原文地址:https://www.cnblogs.com/huanghuahui/p/11159280.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!