美文网首页
2018-01-16 source tree和码云连接进行上传代

2018-01-16 source tree和码云连接进行上传代

作者: 张大志的博客 | 来源:发表于2018-01-16 10:08 被阅读0次

1、下载并安装source tree

2、生成ssh公钥

首先windows上要安装好git


image.png

进入git命令行模式,输入如下命令生成公钥


image.png

复制公钥


3、将公钥导入码云

image.png

4、在source tree上导入公钥并进行配置

image.png
使用sourcetree上传时的用户和邮箱要填对
image.png
此用户和邮箱通过如下命令可以生成
点击下面的命令行模式进入git命令行
image.png
输入如下命令
git config --global user.email "you@example.com"
git config --global user.name "Your Name"

5、在source tree上克隆仓库

image.png

6、本地新建个文件上传到码云

image.png
image.png

将此文件加入到暂存区块,相当于git add命令


image.png
将文件从暂存区块递交到版本库中,相当于git commit命令
image.png

点击推送,相当于git push origin master


image.png
发现码云上已经多了一个app9了
image.png
至此上传成功!!!
7、git status命令
image.png
image.png

相关文章

网友评论

      本文标题:2018-01-16 source tree和码云连接进行上传代

      本文链接:https://www.haomeiwen.com/subject/zuajoxtx.html