Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitahead - HTTPS Credentials keeps popping up

Tags:

git

gitahead

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

  • it requires a log in every few minutes
like image 338
Omzig Avatar asked Mar 05 '23 12:03

Omzig


1 Answers

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

Same thing applies to bitbucket as well.

https://<USERNAME>:<PASSWORD>@bitbucket.org/{username}/{repo_name}.git
like image 100
webfatic Avatar answered Apr 29 '23 08:04

webfatic