I recently switched to synchronising my repositories to https:// on GitHub (due to firewall issues), and it asks for a password every time. It used to be that I had an SSH certificate, and it was enough. Is there a way to bypass the password in my case (using http/https)?
相关问题
- java client program to send digest authentication
- How to add working directory to deployment in GitH
- PHP persistent login - Do i reissue a cookie after
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
相关文章
- 请教Git如何克隆本地库?
- java开发bug问题:GitHub授权登录无法获取授权账号信息?
- Is there a Github markdown language identifier for
- “no implicit conversion of Integer into String” er
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
You can also have Git store your credentials permanently using the following:
Note: While this is convenient, Git will store your credentials in clear text in a local file (.git-credentials) under your project directory (see below for the "home" directory). If you don't like this, delete this file and switch to using the cache option.
If you want Git to resume to asking you for credentials every time it needs to connect to the remote repository, you can run this command:
To store the passwords in
.git-credentials
in your%HOME%
directory as opposed to the project directory: use the--global
flagIt wasn't immediately obvious to me that I needed to download the helper first! I found the credential.helper download at Atlassian's Permanently authenticating with Git repositories.
Quote:
Follow these steps if you want to use Git with credential caching on OS X:
Download the binary git-credential-osxkeychain.
Run the command below to ensure the binary is executable:
Put it in the directory
/usr/local/bin
.Run the command below:
Simply include the login credentials as part of the URL:
For Windows you can use the Git Credential Manager (GCM) plugin. It is currently maintained by Microsoft. The nice thing is that it saves the password in the Windows Credential Store, not as plain text.
There is an installer on the releases page of the project. This will also install the official version of Git for Windows with the credential manager built-in. It allows two-factor authentication for GitHub (and other servers). And has a graphical interface for initially logging in.
For Cygwin users (or users already using the official Git for Windows), you might prefer the manual install. Download the zip package from the releases page. Extract the package, and then run the
install.cmd
file. This will install to your~/bin
folder. (Be sure your~/bin
directory is in your PATH.) You then configure it using this command:Git will then run the
git-credential-manager.exe
when authenticating to any server.After you clone
repo
, you can editrepo/.git/config
and add some configuration like below:Then you won't be asked for
username
andpassword
again.This works for me I'm using Windows 10