腾讯github(coding DevOps),也有代码托管,类似github

--------coding DevOps-------------
A:先在coding上,在代码仓库里先创建一个同名的项目,再点击“设置”按钮 部署公钥,再用git clone下来

https://sunboycll.coding.net/user/projects 用的这个登录 微信扫码登录
 

https://e.coding.net/sunboycll/coding-code-guide/config-repo.git

https://e.coding.net/sunboycll/coding-code-guide/config-repo 

生成公钥

执行命令:

ssh-keygen -t rsa -C 2962938812@qq.com

ssh-keygen -m PEM -t rsa -b 4096 -C "your.email@example.com"
# Creates a new ssh key, using the provided email as a label
# Generating public/private rsa key pair.
Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]  // 推荐使用默认地址
Enter passphrase (empty for no passphrase):   // 此处不填写,回车即可;如果填写密码,则每次使用 SSH 方式推送代码时都会要求输入密码。

注意:进到项目目录下

B:提交代码
1: git commit -am 'ddd'
2: git push
再输入用户名 密码就可以了
(git push 用户密码)
774914081@qq.com
sunboy@5186

C: 拉取: 修改网络上的git文件内容,再拉取
1:git fetch 
2:git merge

D:新加文件
1: git add .
2: git commit -am 'ddd' 

本地缓存删除(改变成未被追踪状态)
git rm -r --cached . 
---------------------------------------

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值