如何在git中保存用户名和密码 [英] How to save username and password in git

查看:345
本文介绍了如何在git中保存用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在GitExtension中自动使用push和pull功能,而不必每次都在提示符下输入用户名和密码。所以我该如何保存我的凭据在git?

解决方案

  git config credential.helper store 

然后

  git pull 

提供用户名和密码,并且稍后会记住这些详细信息。凭证存储在磁盘中,并具有磁盘权限。



如果您想稍后更改密码

  git config credential.helper store 

然后

  git pull 

提供新的密码,它将像以前一样工作。


I want to use a push and pull automatically in GitExtension, without entering my user and password in a prompt, every time.

So how can I save my credentials in git ?

解决方案

git config credential.helper store

then

git pull

provide user-name and password and those details will be remembered later. The credentials are stored in the disk, with the disk permissions.

if you want to change password later

git config credential.helper store 

then

git pull

provide new password and it will work like before.

这篇关于如何在git中保存用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆