Why does git ask for my username




















All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request. Or, learn how to contribute. GitHub Docs. Learning about GitHub. Notify me of followup comments via e-mail. You can also subscribe without commenting. This site uses Akismet to reduce spam.

Learn how your comment data is processed. Clone Remote Git Repository. If you liked this article, then do subscribe to email alerts for Linux tutorials.

If you have any questions or doubts? Related Posts. Got something to say? 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? Improving upon Ianl's answer , It seems that if 2-step authentication is enabled, you have to use token instead of password.

Update If you don't want to store the password in the config file, then you can generate your personal token and replace the password with the token. Shine Hugh 11 2 2 bronze badges. Is this secure? Can someone just access this information from my computer? Yes, they can access from your computer since they are stored in plain text in. IanI IanI 3 3 silver badges 9 9 bronze badges. You don't have to remove the remote.

That's a great point! If you have a typo in the URL, you will be prompted for the 'Username' instead of being told that the repository does not exist.

The URL has been updated: help. Hazarapet Tunanyan Hazarapet Tunanyan 2, 24 24 silver badges 27 27 bronze badges. Neil Neil 79 1 1 silver badge 4 4 bronze badges.

Neil I believe this is a useful info, but I doubt it may not qualify as an answer. Sign up or log in Sign up using Google. Sign up using Facebook. 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.



0コメント

  • 1000 / 1000