Git push origin master could not read username for http://github.com
If you clone your project on another computer and try to do:
git push origin master
and you get and error like:
fatal: could not read Username for ‘https://github.com’: No such file or directory
then you can solve this by executing the following command:
git remote set-url origin [email protected]:username/repo.git
where, of course,username and repo depend on your settings.
For more info, check this StackOverflow question.
Thank you for sharing your info. I truly appreciate
your efforts and I am waiting for your further write
ups thanks once again.
Sure, no problem – I’m glad it helped you!
Thanks so much. I’ve tried many solutions. You solve my problem with two lines!
Thanks! I’m glad I helped!