相关疑难解决方法(0)

在GitHub上使用https://时有没有办法跳过密码输入?

我最近切换到将我的存储库同步到GitHub上的https://(由于防火墙问题),并且每次都要求输入密码.过去,我有一个SSH证书,这就足够了.在我的情况下是否有办法绕过密码(使用http/https)?

git authentication github git-push git-config

1806
推荐指数
19
解决办法
94万
查看次数

如何在GIT中保存用户名和密码?

我想在GitExtension中自动使用push和pull ,而不是每次都在提示符中输入我的用户和密码.

那么如何在GIT中保存我的凭据呢?

git credentials git-config

886
推荐指数
26
解决办法
78万
查看次数

从Git中删除凭据

我正在使用几个存储库,但最近我只是在内部工作,一切都很棒.

今天我不得不承诺并将代码推送到其他代码中,但我遇到了一些麻烦.

$ git push appharbor master
error: The requested URL returned error: 403 while accessing https://gavekortet@appharbor.com/mitivo.git/info/refs?service=git-receive-pack
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)

我无能为力,这将再次带来密码输入.

如何重置系统上的凭据,以便Git会询问我该存储库的密码?

我试过了:

  • git config --global --unset core.askpass

为了取消设置密码

  • git config credential.helper 'cache --timeout=1'

为了避免凭证缓存......

似乎没有任何作用; 有没有人有更好的主意?

windows git credentials

522
推荐指数
29
解决办法
63万
查看次数

Git凭证助手 - 更新密码

我目前正在通过HTTPS使用GitHub,并在Windows 7上安装了最新版本的Git(1.9.0)以及Git凭证帮助程序.

在设置我的环境时,我告诉git-credentials永久记住我的用户名和密码.

我最近通过网站更新了我的GitHub密码,现在我无法再推/拉/取等.

我如何在Windows 7上使用git-credentials helper更新密码?

git github change-password windows-7-x64 git-credential-winstore

163
推荐指数
11
解决办法
19万
查看次数

Git http - 安全地记住凭据

有没有办法安全地让git在通过HTTP(S)连接到远程存储库时记住我的凭据?

我已经尝试了core.askpass详细介绍的方法git-config,让外部脚本提供我的凭据.虽然它工作得很好,但用户名和密码仍然以纯文本形式存储在小shell脚本中.

git authentication

67
推荐指数
3
解决办法
6万
查看次数

对Bitbucket和GitHub使用GitHub for Windows

是否可以同时使用GitHub for Windows同时使用Bitbucket和GitHub?

例如,我可以在程序中显示两个站点上的回购,当我提交/同步回购时,它会推送到相应网站上的相应回购中吗?

github bitbucket github-for-windows

60
推荐指数
3
解决办法
4万
查看次数

如何在WSL上使用Git凭证存储(Windows上的Ubuntu)?

我试过按照这些说明操作:https://stackoverflow.com/a/40312117/21728基本上这样做:

sudo apt-get install libsecret-1-0 libsecret-1-dev
cd /usr/share/doc/git/contrib/credential/libsecret
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
Run Code Online (Sandbox Code Playgroud)

但是当我进行任何网络操作时,我收到此错误:

** (process:7902): CRITICAL **: could not connect to Secret Service: Cannot autolaunch D-Bus without X11 $DISPLAY
Run Code Online (Sandbox Code Playgroud)

这是合乎逻辑的,因为确实没有X11显示器.

如何在Windows(WSL)上的Ubuntu上使Git凭据缓存工作?

git ubuntu windows-subsystem-for-linux

39
推荐指数
5
解决办法
8951
查看次数

Github克隆与oauth访问令牌

在脚本内部我试图用oauth令牌克隆Github存储库.

根据本教程:

https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-https-and-oauth

我应该能够为它构建一个命令:

git clone https://<token>@github.com/owner/repo.git
Run Code Online (Sandbox Code Playgroud)

如果我使用适当的访问令牌手动尝试此操作,它仍然会要求我输入密码.

如果我在命令行上尝试它,我只是得到一个repository not found错误.

该文章来自2012年,我找不到任何API文档.所以我想知道这是否仍然有效.

git oauth github

34
推荐指数
7
解决办法
4万
查看次数

从GitHub存储个人访问令牌的位置?

在GitHub中生成个人访问令牌后,是否有必要将其存储在本地的某个位置?

如果是,是否有任何可以存储的首选方式?

git github access-token

30
推荐指数
8
解决办法
2万
查看次数

将Git凭证助手与gnome-keyring一起用作Sudo时出错

我正在寻找一种方法来安全地存储凭证,同时连接到使用SSL的Git服务器.我在@james-ward中遇到了这个建议(我编辑的只是我更新了我们的"系统"配置,而不是Git的"全局"配置(/sf/answers/1016985231/)

sudo apt-get install libgnome-keyring-dev
cd /usr/share/doc/git/contrib/credential/gnome-keyring
sudo make
git config --system credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring
Run Code Online (Sandbox Code Playgroud)

然后我就可以跑了

git clone https://ipaddress/git/repo.git
Run Code Online (Sandbox Code Playgroud)

并且凭证助手将存储我的凭据,但是当我运行以下内容时:

sudo git clone https://ipaddress/git/repo.git testfolder
Run Code Online (Sandbox Code Playgroud)

它给我以下错误

** (process:3713): CRITICAL **: Error communicating with gnome-keyring-daemon
Run Code Online (Sandbox Code Playgroud)

我有时需要运行sudo git clone,因为有时我需要创建克隆的目录需要它.任何帮助,将不胜感激.

我正在使用的版本: - git版本1.9.1 - Ubuntu Server 14.0.4

先感谢您!-Richard O.

linux git ubuntu gnome-keyring-daemon

22
推荐指数
3
解决办法
2万
查看次数