-
-
Couldn't load subscription status.
- Fork 657
GitUI asks for username each time when pulling from remote repository #1085
-
Describe the bug
I want to use gitui to pull and push from a remote repository. Gitui asks for username and password each time.
To Reproduce
Steps to reproduce the behavior:
- Start gitui in a directory with a cloned repository
- Start pulling from remote repository
Expected behavior
The pull works without entering my username and passwords
Screenshots
image
Context (please complete the following information):
- OS/Distro + Version: macos 12.1 (21C52)
- GitUI Version ➜ gitui -V gitui 0.19.0
- Rust version: 1.57.0
Additional context
Using git pull from commandline works without entering credentials
GitUi Log:
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 5 replies
-
setup an ssh key that will solve it. I don't want gitui in the business of securely storing passwords and ssh is a best practice anyway: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
Beta Was this translation helpful? Give feedback.
All reactions
-
or am I missing something here? how is it supposed to know your credentials otherwise?
Beta Was this translation helpful? Give feedback.
All reactions
-
Due to several reasons we are mainly using https on our gitlab instance and do not support ssh protocol.
Git uses a credential manager in the background to support these scenarios and the credentials are stored differently on each platform- on macOS this is the keychain.
More Infos are available here:
https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage
https://github.com/GitCredentialManager/git-credential-manager
Beta Was this translation helpful? Give feedback.
All reactions
-
can you do me a favour and run printf "protocol=https\nhost=github.com\n" | git credential fill and see if this outputs the correct credentials for you? I am working on integrating this as of #800
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes, it does @extrawurst ! Thanks for pushing this topic. This will make it more easily to use gitui for me !
Beta Was this translation helpful? Give feedback.
All reactions
-
🎉 1
-
Great! If you could follow the steps to build from the branch to test this I can even make it part of the upcoming 0.20 release: #800 (comment)
Beta Was this translation helpful? Give feedback.