I’m trying to push some of my projects to my github account but when i try it wont let me. I was able to push just a couple of days ago and now I cant.
I tried
running
cd existing_git_repo
git remote add origin https://github.com/Ommy/MapTool.git
git push -u origin master
but on git bash it asks for
Username for 'https://github.com':
I try my username/password which doesn’t work.
I tried running
git config --global user.name "Fasih Awan"
git config --global user.email *********@gmail.com
but even with that it still asks for the username/password. I created the repository on github before pushing but it still does this. What am I doing wrong?
If you are using HTTP for the remote repository you will still need to type your username and password. If you want to use SSH keys, use the SSH protocol for the remote repository. There is a guide here on how to configure SSH keys.