1

Is it possible to have one repository use a different set of credentials for pushing than others on the same machine, with the same session?

Use case: I am using a friend's computer, my friend contributes to project A using wincred session-wide, and I would like to contribute to project B without messing up his computer (possibly using wincred repository-wide). I trust my friend and his computer with my password on origin

I am using an up-to-date tortoise git 2.5 with git for windows 2.14 and wincred

PPC
  • 1,734
  • 1
  • 21
  • 41

1 Answers1

1

In your second repo, you can either:

That will attempts to contact https://yourlogin@server.com and will ask (and cache) your credentials.

  • or you could switch to SSH (no more "manager"). You would then need to have a ~/.ssh/config correctly configured (provided you can/have register(ed) your SSH public key on the server.
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250