1932

I cloned a Git repository from my GitHub account to my PC.

I want to work with both my PC and laptop, but with one GitHub account.

When I try to push to or pull from GitHub using my PC, it requires a username and password, but not when I'm using the laptop!

I don't want to type my username and password every time I interact with origin. What am I missing here?

9
  • 3
    You need to register the pubkey with your Github account (github.com/account/ssh) and configure your SSH client to use the right username. Commented Jul 3, 2011 at 20:33
  • 2
    I have done all of that but still it requires username and password! is it possible to use one account with two PCs? Commented Jul 3, 2011 at 20:46
  • 1
    This question covers all your options for this quite well: stackoverflow.com/questions/5343068/… Commented Apr 5, 2013 at 6:18
  • 3
    No need to switch over to ssh anymore. It's possible with HTTPS too. Check my answer. Commented Apr 5, 2013 at 6:19
  • 1
    I prefer using an encrypted netrc.gpg in which I can store all my credentials for https remote repo. And that works well with the new GitHub two-factor authentication! Commented Sep 11, 2013 at 21:23

31 Answers 31

1
2
-2

Check your git version and update. Then will fixed the issue

$ git update-git-for-windows

Update note : we can use this when your PC git version and server git version mismatched.

Sign up to request clarification or add additional context in comments.

2 Comments

This command doesn't work for me at all. No such command.
This worked only the windows 10 and that server git version miss with your computer version.
1
2

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.