4

How do I stay logged in after I login to the git server with GitAhead software?

  • it requires a log in every few minutes
4

8 回答 8

4

GitAhead is using Git for credentials helpers (libgit2 for the rest)

So make sure your credentials helper is set (to "manager" on Windows, OSX Keychain on Mac) and try, from a Git session, to type:

git ls-remote https://url/of/remote/repo

That will trigger a popup, and cache your credentials.
Then relaunch GitAhead (using the same user account, with the same environment), and see if the issue persists.

于 2019-02-16T04:58:39.990 回答
2

Following worked for me.

On GitAhead click on the gear icon on your repository or go to repository > Configure repository. Then click on "Edit config File"

Add password by adding a colon at the end of the username/email

https://<USERNAME>:<PASSWORD>@github.com

Should be like this

[remote "origin"]
url = https://<USERNAME>:<PASSWORD>@github.com/{username}/{repo_name}.git
fetch = +refs/heads/*:refs/remotes/origin/*

Never use your account password. Use "personal access token" as the password, if you don't have it you can generate it in Github. Have a expiry date so that it will be safe, or you can generate one without expiration, your choice.

https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token

于 2021-08-11T10:02:08.353 回答
1

Turns out what fixed it for me was removing the username@ off of the URL and then changing 2 settings.

git config --global credential.helper manager

There is more information located here on the subject.

This is the document I got the settings from.

于 2019-02-27T20:04:15.987 回答
0

Open Tools > Options

Check the box on "Store credentials in secure storage"

If still not work, Disable automatic fetch and use fetch manually

于 2019-09-09T06:03:11.780 回答
0

I use credential Helper on Global config, and that's all.

Sample using with AWS

~/.gitconfig

    [credential]
        helper = !aws codecommit credential-helper $@
        UseHttpPath = true
于 2019-10-09T22:15:47.560 回答
0

I solved this by using a credential manager i.e GNOME Keyring Disable and re-enable "Store credentials in secure storage" then enter the your credentials once again and it shouldn't ask again.

于 2020-12-28T16:38:40.807 回答
0

So if it keeps poping up and it wont save the settings. Run the application where you run GIT as Administrator

type: git config --edit --system

and set store or wincred if you have windows credentials.

The problem that it pops up even if you store it is that git has no permissions to write the git configuration file

于 2021-08-27T13:30:31.500 回答
0

Another option: use ssh URL instead of http, and register your public key with github.

于 2022-03-03T13:50:46.183 回答