从bitbucket克隆git仓库的密码问题 [英] password issue in cloning git repository from bitbucket

查看:545
本文介绍了从bitbucket克隆git仓库的密码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有bitbucket git存储库。
我试图从我的电脑中克隆它,但我无法输入密码。

  git clone https:// id @ bitbucket.org / id / SOMEGITPROJ.git 
克隆到SOMEGITPROJ ...
密码:



 'PASSWORD'不被识别为内部或外部命令,
可操作的程序或批处理文件。

如何解决这个问题?有没有什么办法可以在'git clone命令'的同一个命令行中输入密码?

解决方案

这个网站。



对于mac

http://confluence.atlassian.com/pages/viewpage.action?pageId=270827678



总之:


  1. pbcopy < 〜/ .ssh / id_rsa.pub

  2. 转至account / ssh键以添加此密钥

  3. 使用ssh协议不是https

对于PC



http://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git



总之:


  1. cat / home / USER / .ssh / id_rsa.pub> key.txt

  2. 与Mac相同


I have bitbucket git repository. I tried to clone it from my PC, but I cannot give password.

git clone https://id@bitbucket.org/id/SOMEGITPROJ.git
Cloning into SOMEGITPROJ...
Password:

As I have this error.

'PASSWORD' is not recognized as an internal or external command,
operable program or batch file.

How to solve this issue? Is there any way to give the password in the same command line of 'git clone command'?

解决方案

I found an answer in this site.

For mac

http://confluence.atlassian.com/pages/viewpage.action?pageId=270827678

In short:

  1. pbcopy < ~/.ssh/id_rsa.pub
  2. go to account/ssh keys to add this key
  3. use ssh protocol not https

For PC

http://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git

In short:

  1. cat /home/USER/.ssh/id_rsa.pub > key.txt
  2. same as Mac

这篇关于从bitbucket克隆git仓库的密码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆