Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bitbucket repo clone with login credentials

I have a Basic git clone command to bitbucket in which I have to add Login credentials, is it possible to add Login credentials to a bitbucket git clone command?

https://[email protected]/myacc/app.git

Something like this?

https://[email protected]/myacc/app.git -Password "123"
like image 558
Jon not doe xx Avatar asked Oct 18 '18 08:10

Jon not doe xx


1 Answers

You can, with:

git clone https://user:[email protected]/myacc/app.git

But this will save your credentials in the origin url in .git/config.
To avoid that you could change the origin afterwards
git remote set-url origin https://[email protected]/myacc/app.git

like image 55
ColdIV Avatar answered Sep 29 '22 06:09

ColdIV