git连接gihub&上传及clone项目

0 git设置

下载git
打开git bash, 之后进行设置

git config --global user.name scchy
git config --global user.email aaa@mail.com
git config --global push.default matching

1 设置ssh连接

可以打开 ssh-key 设置页面查看

// open git bash
ssh-keygen -t rsa -b 4096 -C "aaa@mail.com"
cat ~/.ssh/id_rsa.pub
// 将内容复制到GitHub NEW SSH KEY

github 设置NEW SSH KEY
将cat 内容复制到 下面的KEy
在这里插入图片描述
在这里插入图片描述

1.1 查看密钥&查看调试信息

// 查看加入的密钥列表
ssh-add -l  
// 查看调试信息
ssh -v git@github.com 

1.2 当(git)ssh名字非默认id_rsa时

ssh-agent bash
ssh-add ssh的命名

ssh-add -l  // 查看加入的密钥列表
ssh -v git@github.com // 查看调试信息

2 上传项目到git & clone 项目

2.1 上传

// 0- 添加节点
git remote set-url --delete origin
git remote add origin_learn git@github.com:scchy/xxxxxxx

git init
git add .
git commit -m '项目上传:scchy_update:xxxxx'
// 当 git push -u origin_learn master 报错时, 加上 -f
git push -f -u origin_learn master

这样就把项目上传到gihub上了

需要注意: 该方法上传是全覆盖的方式

2.1.1 节点的ssh获取

在这里插入图片描述

2.2 Clone

git clone https://github.com/xxxxxxx
Github下载地址:https://github.com/XLAccount/MiaoBo 项目详解地址:http://www.code4app.com/blog-843201-350.html 快速集成RTMP的视频推流教程:http://www.code4app.com/blog-843201-315.html ffmpeg常用命令操作:http://www.code4app.com/blog-843201-326.html #关于IJKMediaFramework/IJKMediaFramework.h找不到的问题,下载后直接拉到项目中即可 下载地址:https://pan.baidu.com/s/1boPOomN 密码::9yd8 #BUG修复: 解决登录程序偶尔崩溃,修复轮播图片和页面控制器叠加等问题,修复新浪授权登录 (2016.9.7) 解决程序运行中偶尔崩溃问题,解决连续下拉刷新崩溃问题,优化代码 (2016.9.8) 优化直播页面,减少不必要的性能消耗,增加用户体验 (2016.9.11) 适配5s以上的机型除了6sPlus和6Plus延迟较大外,其余延迟都较小,网速好的话可以忽略不计 (2016.9.12) 新版本极大优化程序性能,修复关注数据异常等小问题,重新布局热门页面,减少因反复加载带来的性能消耗 (2016.9.13) 增加个人中心页面,采用下拉放大图片 ➕ 波纹效果 (2016.9.14) ![image text](https://github.com/XLAccount/ALLGIFS/blob/master/psb.gif) 展示图片 ![image](https://github.com/XLAccount/ALLGIFS/blob/master/psb-1.gif) 展示图片 ![image text](https://github.com/XLAccount/ALLGIFS/blob/master/psb-2.gif) 展示图片 ![image text](https://github.com/XLAccount/ALLGIFS/blob/master/psb-3.gif) 展示图片 感谢大神Monkey_ALin http://www.jianshu.com/users/9723687edfb5/latest_articles 的demo支持
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Scc_hy

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值