Copilot does not have access to project repo, asking for switching account everytime I pull or push #191307
Replies: 2 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, this happens because VS Code’s built-in GitHub authentication tries to use the same active session for both Copilot and Git operations. The cleanest fix is to invite your "Copilot account" as a collaborator to the repository. If you can use that single account for both, the prompts will stop. If you must keep the accounts separate, I'd suggest switching your local repo to use SSH instead of HTTPS. This bypasses the VS Code credential helper for Git actions: git remote set-url origin git@github.com:username/repo.gitBy using SSH keys for the repo, VS Code won't try to use your Copilot login for pushes/pulls. You can check your current setup with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Copilot in GitHub
Body
Please provide a solution. Copilot does not have access to project repo. Not sure if this is an authentic way to ask "Provide full repo access to copilot". Whenever I try to pull or push in my local branch in Vscode, it always ask me to switch my account (if I am in copilot account). Is there a way to use a single accoutn for both my repo & copilot chat or is this the default behaviour that I have to deal with everytime?
Beta Was this translation helpful? Give feedback.
All reactions