When I do
git push
I get the command prompt like
Username for 'https://github.com':
then I enter my username manually like
Username for 'https://github.com': myusername
and then I hit Enter and I get prompt for my password
Password for 'https://myusername@github.com':
I want the username to be written automatically instead of manually having to type it all the time.
I tried doing it with xdotool
but it didn't work out.
I have already done
git config --global user.name myusername
git config --global user.email myemail@gmail.com
but still it always asks for me to type manually
git config credential.helper store
described here: https://stackoverflow.com/questions/11403407/git-asks-for-username-every-time-i-push In this case you do not store the password in clear text in the origin URL, but in a file in you profile. (Also not encrypted) – Oleg Rudenko Mar 15 '19 at 17:43