Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GitUI asks for username each time when pulling from remote repository #1085

Unanswered
jgoldhammer asked this question in Q&A
Discussion options

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:

  1. Start gitui in a directory with a cloned repository
  2. 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

image

GitUi Log:

image

You must be logged in to vote

Replies: 1 comment 5 replies

Comment options

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

You must be logged in to vote
5 replies
Comment options

or am I missing something here? how is it supposed to know your credentials otherwise?

Comment options

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

Comment options

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

Comment options

Yes, it does @extrawurst ! Thanks for pushing this topic. This will make it more easily to use gitui for me !

Comment options

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #1084 on January 21, 2022 10:04.

AltStyle によって変換されたページ (->オリジナル) /