I'm trying to build script which clone git repository without the need to enter the username and password.
I read this post: How to provide username and password when run “git clone git@remote.git”?
and try in that way:
git clone http://MyUserName:MyPassword@Location
But I'm getting the following error:
fatal: Authentication failed for http://MyUserName:MyPassword@Location
When I'm running the command without password:
git clone http://MyUserName@Location
and enter the password in the next step, it works.
I want that it will be automatic without the need to enter the password.
what am I missing with the first command ?