[英]password issue in cloning git repository from bitbucket
我有 bitbucket git 存儲庫。 我試圖從我的 PC 上克隆它,但我無法提供密碼。
git clone https://id@bitbucket.org/id/SOMEGITPROJ.git
Cloning into SOMEGITPROJ...
Password:
因為我有這個錯誤。
'PASSWORD' is not recognized as an internal or external command,
operable program or batch file.
如何解決這個問題? 有沒有辦法在'git clone命令'的同一命令行中提供密碼?
我在這個網站上找到了答案:
https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html
蘋果機
簡而言之:
pbcopy < ~/.ssh/id_rsa.pub
電腦用
簡而言之:
cat /home/USER/.ssh/id_rsa.pub > key.txt
對於 Linux
簡而言之:
cat ~/.ssh/id_rsa.pub | xclip -sel clip
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.