从bitbucket克隆git仓库的密码问题 [英] password issue in cloning git repository from bitbucket
问题描述
我有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
总之:
- pbcopy < 〜/ .ssh / id_rsa.pub
- 转至account / ssh键以添加此密钥
- 使用ssh协议不是https
对于PC
http://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git
总之:
- cat / home / USER / .ssh / id_rsa.pub> key.txt
- 与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:
- pbcopy < ~/.ssh/id_rsa.pub
- go to account/ssh keys to add this key
- use ssh protocol not https
For PC
http://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git
In short:
- cat /home/USER/.ssh/id_rsa.pub > key.txt
- same as Mac
这篇关于从bitbucket克隆git仓库的密码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!