使用Git将本地代码仓库和Coding关联

step1:初始化本地仓库(如果还没有初始化)

step2:关联你的codingID和email

git config --global user.name "codingID" 
git config --global user.email"coding邮箱

step3:进入到目标仓库中

step4:找到自己的仓库地址并复制

step5:将下图命令中的 仓库地址 替换为你自己的仓库 URL,然后在终端中运行该命令。

git remote add origin 仓库地址

step6:使用 git remote -v 命令来查看当前配置的远程仓库。

git remote -v

输出示例:确保 origin 的 URL 是你的 Coding 仓库的正确 URL。

origin  https://git.dev.tencent.com/yourusername/your-repo.git (fetch)
origin  https://git.dev.tencent.com/yourusername/your-repo.git (push)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值