我想在GitExtension中自动使用push和pull ,而不是每次都在提示符中输入我的用户和密码.
那么如何在GIT中保存我的凭据呢?
我按照这些说明来写信,包括有关密码缓存的部分.似乎说明是错误的,因为每次git push origin master我收到此错误:
git: 'credential-cache' is not a git command. See 'get --help'.
Run Code Online (Sandbox Code Playgroud)
...此时我被迫输入我的用户名和密码.这样做之后,我再次收到相同的错误消息,然后是输出git push.
这是我的.gitconfig文件的内容:
[user]
name = myusername
email = myusername@myemaildomain.com
[credential]
helper = cache
Run Code Online (Sandbox Code Playgroud)
要清楚,在我安装Git并运行Git Bash之后,这就是我输入的内容:
git config --global user.name "myusername"
git config --global user.email "myusername@myemaildomain.com"
git config --global credential.helper cache
Run Code Online (Sandbox Code Playgroud)
请帮忙.这太令人沮丧了!
我在Windows 10系统上,正在尝试将我的凭据添加到Git Bash中的Git。我找不到存储密码的方法。
我检查了GitHub的文档,该文档说的只是输入这一行git config --global credential.helper wincred,但这似乎没有任何意义,因为没有提示输入密码。我检查了Git的文档,该文档说要使用command git credential-store --file ~/git.store store并填写所有提示。bash模拟器无法读取凭据。
最后,我尝试像通过添加电子邮件一样添加密码,git config --global user.password "5ecre7"但是在存储库上运行了示例git clone之后,我让它响应说我没有访问权限。有没有办法解决这个问题?
我有一个应用程序并试图将其推送给私人代表,但不知道为什么会出现此错误:代码未显示在 GitHub 上
>git push -u origin main
fatal: credential-cache unavailable; no unix socket support
Everything up-to-date
Branch 'main' set up to track remote branch 'main' from 'origin'.
Run Code Online (Sandbox Code Playgroud)