Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant push/pull if the git cli used gh-cli credentials #2167

Open
Alt-iOS opened this issue Mar 29, 2024 · 3 comments
Open

Cant push/pull if the git cli used gh-cli credentials #2167

Alt-iOS opened this issue Mar 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Alt-iOS
Copy link

Alt-iOS commented Mar 29, 2024

Describe the bug
In the normal cli, I authenticated my gh with their cli but continue to use git pull or git push -u origin main, nonetheless, it seems gitui cant find the credentials and doesnt store them, as each time I try to interact with the remote repo I need to put my username and a token

To Reproduce
Steps to reproduce the behavior:

  1. Authenticate github account via their cli and the Https method
  2. try to push/pull or interact in any way trough gitui with the remote repo
  3. Be asked to authenticate for each operation

Expected behavior
The same way in the git cli I can interact with the gh repo, without needing to signin each time

Context (please complete the following information):

  • macos 14.1
  • GitUI 0.25.2
  • Rust 1.77
@Alt-iOS Alt-iOS added the bug Something isn't working label Mar 29, 2024
@extrawurst
Copy link
Owner

Probably #2096

@Alt-iOS
Copy link
Author

Alt-iOS commented Mar 29, 2024

I see, thanks!

@Alt-iOS
Copy link
Author

Alt-iOS commented Mar 30, 2024

hey in case anyone sees this, I had never needed to run this before for git to be authenticated with github, but if you run this once, it will work gh auth setup-git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants