As a comment on a response to this question, someone says:It is not advisable to put the password in the URL for this file is saved on the .git/config . Is not safe, it is better to use ssh keyWhy?  Understanding the password will be visible if I type git remote -v, that it'll show up in my bash history, and that anyone with access to my machine would easily be able to get the password, why is it better to use SSH keys?  SSH keys are no more secure assuming that someone has access to my machine -- the SSH keys are still stored on disk locally.
Why is it more unsafe to store your password in the URL of a git repo?
git;security;passwords