-1

When using VSCode to work with GitHub via the official extension, what is the easiest way to handle authentication?

I am using different GitHub accounts for different projects, and I need an easy way to handle authentication without having to constantly type in my password, or log in, log out, etc. Is there a way to set it up so it "just works"?

PS: I am on Mac. I am setting my git name and git email in each project folder.

Ben
  • 15,938
  • 19
  • 92
  • 138
  • 2
    Try something from https://stackoverflow.com/search?q=%5Bgithub%5D+multiple+accounts – phd Aug 30 '23 at 17:33
  • 1
    ^ Follow one of those, and be sure to use the custom name defined in `~/.ssh/config`. Note also that the `user.name` and `user.email` fields are only for authorship on commits, and have precisely zero to do with authentication to any remote. – Jim Redmond Aug 30 '23 at 19:50

0 Answers0