I have bitbucket git repository. I tried to clone it from my PC, but I cannot give password.
git clone https://[email protected]/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:
https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html
For mac
In short:
pbcopy < ~/.ssh/id_rsa.pub
For PC
In short:
cat /home/USER/.ssh/id_rsa.pub > key.txt
For Linux
In short:
cat ~/.ssh/id_rsa.pub | xclip -sel clip
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With