How do I stay logged in after I login to the git server with GitAhead software?
- it requires a log in every few minutes
How do I stay logged in after I login to the git server with GitAhead software?
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.
Same thing applies to bitbucket as well.
https://<USERNAME>:<PASSWORD>@bitbucket.org/{username}/{repo_name}.git
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.
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.
Open Tools > Options
Check the box on "Store credentials in secure storage"
If still not work, Disable automatic fetch and use fetch manually
I use credential Helper on Global config, and that's all.
Sample using with AWS
~/.gitconfig
[credential]
helper = !aws codecommit credential-helper $@
UseHttpPath = true
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.
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
Another option: use ssh URL instead of http, and register your public key with github.
I've run into this same problem with a devops repository. Ultimately trying to log in with my password was the problem. When I obtained a Personal Access Token and specified that as the password, GitAhead did retain the credentials and everything worked as expected.