Linux/Unix/Mac 系统GIT密码存储

新建一个 ~/.netrc 文件, 将 git 服务器, 用户名以及密码记录在这个文件, 如下所示:

machine your-git-server
login your-username
password your-password

普通用户的 git-server 填 github.com 就可以了.

如果有多个 server 就重复上面的三行, 分别输入对应的服务器、 用户名和密码即可.


参考:

http://beginor.github.io/2014/03/04/git-client-save-user-pass.html

猜你喜欢

转载自blog.csdn.net/user_longling/article/details/52350116