I'm the owner of an organization on github and just created a repo and tried pushing but I'm running into an issue where it's asking me for my username even though I can SSH just fine:
$ ssh -T [email protected] Hi Celc! You've successfully authenticated, but GitHub does not provide shell access. $ git add . $ git commit -m 'first commit' [master (root-commit) 3f1b963] first commit 6 files changed, 59 insertions(+) create mode 100644 .gitignore create mode 100644 main.js create mode 100644 package.json create mode 100644 readme.markdown create mode 100644 views/index.ejs create mode 100644 views/layout.ejs $ git remote add origin https://github.com/WEMP/project-slideshow.git $ git push -u origin master Username for 'https://github.com':
What am I doing wrong? This has never happened to me before but I recently also upgraded to git 1.7.10.3.
Issue the command git fetch/push/pull. You will not then be prompted for the password.
If Git prompts you for a username and password every time you try to interact with GitHub, you're probably using the HTTPS clone URL for your repository. Using an HTTPS remote URL has some advantages compared with using SSH. It's easier to set up than SSH, and usually works through strict firewalls and proxies.
If the username and password are correct, the cloning of the remote repository begins immediately. However, this is not safe as the password will be in the shell (ex. bash) history.
Don't use HTTP use SSH instead
change
https://github.com/WEMP/project-slideshow.git
to
[email protected]:WEMP/project-slideshow.git
you can do it in .git/config
file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With