Why does github ask for username and password
To do that, you can follow these steps. If you've enabled two factor authentication, then you'll need to generate a personal access token and use that instead of your regular password. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 9 years, 5 months ago.
Active 1 year, 1 month ago. Viewed k times. You've successfully authenticated, but GitHub does not provide shell access. Kit Sunde Kit Sunde Add a comment. Active Oldest Votes. Hugo Hugo I just figured this out after reading stackoverflow. You can change this option by clicking the button where you copy your clone url. For MacOS. Issue when you upgrade to lastest macos. You can also do git remote set-url origin git github. Do a git pull to test it.
Dherik Sean Sean 7, 3 3 gold badges 28 28 silver badges 32 32 bronze badges. That's a good point, if you include the username it'll be handled by the OS keychain at least it should in OSX, and apparently in Windows too.
Community Bot 1 1 1 silver badge. Catalin Hritcu Catalin Hritcu 7 7 silver badges 12 12 bronze badges. I would argue with Github that it's not easier to setup if you end up here : — ecoologic. This is an answer for a question because the question ask, WHY? Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Connect and share knowledge within a single location that is structured and easy to search. I am working with a repo on GitHub and everytime I try to push something, it asks for my GitHub username and password. I don't want it doing that.
I tried the instructions on setting your email in Git , namely set up the Git variables github. You need to set-up an ssh-agent against which you only need to authenticate once. See this answer over at SO for a howto. Had a similar problem today: I messed things up in my working copy, so I decided to rename the directory and clone my project again from github.
That was because today I used the https protocol to clone the project! To check what protocol you're using just run. The username will be yours if you own the repository, or the repository owner's username otherwise. Where are 8 hours. I use this setup to enter my password only once, when I start my working day. Also, if you wish to be prompted for your password every-time, but just not your username, then you configure the remote as HTTPS with a username..
Like this.. This is how I prefer it, since I like being forced to type my github password before sharing with the world. Things are a little different if you're using 2-factor auth as I am. Since I didn't find a good answer elsewhere, I'll stick one here so that maybe I can find it later.
But you can use an application access token and use git's credential helper to cache that for you. Here are the pertinent links:. And I don't remember where I saw this but when you're asked for your Username - that's where you stick the application access token.
Then leave the password blank. Worked on my mac. Asking the username is annoying for me, but asking for a password is nice since it ensures you really want to go public with your changes Simply download the latest version and install it. You don't. It magically works when credentials are needed. Sign up to join this community. The best answers are voted up and rise to the top.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How do I ensure Git doesn't ask me for my GitHub username and password?
Ask Question. Or, learn how to contribute. GitHub Docs. Learning about GitHub. Signing up for GitHub. Using GitHub. Explore projects. Getting started with Git. Using Git.
0コメント