gitahead - HTTPS 凭证不断弹出

Omz*_*zig 5 git gitahead

使用GitAhead软件登录git服务器后如何保持登录状态?

  • 它需要每隔几分钟登录一次

web*_*tic 5

以下对我有用。

在 GitAhead 上,单击存储库上的齿轮图标或转到存储库 > 配置存储库。然后点击“编辑配置文件”

通过在用户名/电子邮件末尾添加冒号来添加密码

https://<USERNAME>:<PASSWORD>@github.com
Run Code Online (Sandbox Code Playgroud)

应该是这样的

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

切勿使用您的帐户密码。使用“个人访问令牌”作为密码,如果没有,可以在 Github 中生成。设置一个到期日期以确保安全,或者您可以根据自己的选择生成一个没有到期日期的日期。

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

同样的事情也适用于 bitbucket。

https://<USERNAME>:<PASSWORD>@bitbucket.org/{username}/{repo_name}.git
Run Code Online (Sandbox Code Playgroud)