gitui icon indicating copy to clipboard operation
gitui copied to clipboard

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

Open Alt-iOS opened this issue 1 year ago • 3 comments

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 avatar Mar 29 '24 05:03 Alt-iOS

Probably #2096

extrawurst avatar Mar 29 '24 13:03 extrawurst

I see, thanks!

Alt-iOS avatar Mar 29 '24 15:03 Alt-iOS

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

Alt-iOS avatar Mar 30 '24 19:03 Alt-iOS