上传代码至bitbucket 及遇到的问题汇总

1,用服务器上的空仓库生成.hg文件

hg clone your-url

2,将生成的.hg目录拷到要上传的本地仓库目录下(初始时hg init)

3,添加要上传的文件到本地仓库

hg add

4,将代码提交到本地仓库

hg commit

5,将本地仓库的代码提交到服务器

hg push your-url

可能遇到的问题汇总:

Q:中止: 此处没有水银版本库(没有找到 .hg)!
A:hg init
Q:
yu@MCW-xnYu:~/memcache/Bitbucket_repository$ hg clone ssh://hg@bitbucket.org/***/***
The authenticity of host 'bitbucket.org (207.223.240.182)' can't be established.
RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.
Are you sure you want to continue connecting (yes/no)? yes
remote: Warning: Permanently added 'bitbucket.org,207.223.240.182' (RSA) to the list of known hosts.
remote: Permission denied (publickey).
中止: no suitable response from remote

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值