[git] https模式下,自动输入用户名和密码
来源:互联网 发布:大数据入门 知乎 编辑:程序博客网 时间:2024/05/16 00:36
如何让git 提交时,不输入用户名和密码?
按照git 的加key的说明:
https://help.github.com/articles/generating-ssh-keys
ssh-keygen -t rsa -C "your_email@example.com"# Creates a new ssh key, using the provided email as a label# Generating public/private rsa key pair.# Enter file in which to save the key (/home/you/.ssh/id_rsa):ssh-add id_rsa
sudo apt-get install xclip# Downloads and installs xclip. If you don't have `apt-get`, you might need to use another installer (like `yum`)xclip -sel clip < ~/.ssh/id_rsa.pub# Copies the contents of the id_rsa.pub file to your clipboard
当仍然会要求输入用户名和密码,最后找到了临时解决方法:
https://help.github.com/articles/set-up-git
Username
First you need to tell git your name, so that it can properly label the commits you make.
git config --global user.name "Your Name Here"# Sets the default name for git to use when you commit
Git saves your email address into the commits you make. We use the email address to associate your commits with your GitHub account.
git config --global user.email "your_email@example.com"# Sets the default email for git to use when you commit
Your email address for Git should be the same one associated with your GitHub account. If it is not, see this guide for help adding additional emails to your GitHub account. If you want to keep your email address hidden, this guide may be useful to you.
Overriding settings in individual repos
Password caching
The last option we need to set will tell git that you don't want to type your username and password every time you talk to a remote server.
Tip: You need git 1.7.10 or newer to use the credential helper
To use this option, you need to turn on the credential helper so that git will save your password in memory for some time:
git config --global credential.helper cache# Set git to use the credential memory cache
By default git will cache your password for 15 minutes. You can change this if you like.
git config --global credential.helper 'cache --timeout=3600'# Set the cache to timeout after 1 hour (setting is in seconds)
Tip: The credential helper only works when you clone an HTTPS repository URL. If you use the SSH repository URL instead, SSH keys are used for authentication. This guide offers help generating and using an SSH key pair.
- [git] https模式下,自动输入用户名和密码
- Git命令行下自动保存用户名和密码
- 解决git以 https和ssh方式 每次都要输入用户名和密码问题
- git push不想输入用户名和密码
- git push 提示输入用户名和密码
- git不用输入用户名和密码
- git不用输入用户名和密码
- https模式下记住git密码
- https模式下记住git密码
- windows下保存git用户名和密码
- Windows下保存git 用户名和密码
- windows下保存git用户名和密码
- 自动登录linux服务器,自动输入用户名和密码
- Windows下git web hook免除密码输入的烦人事(SSH和HTTPS)
- git push 输入用户名和密码的问题解决
- 设置Git不需要每次push都输入用户名和密码
- git push 每次都需要输入用户名和密码
- ubuntu git push 重复输入用户名和密码
- 芋头番薯糖水
- Sublime 3 中文显示乱码解决方法
- Oracle Download
- linux 应用调试
- AJAX工作原理
- [git] https模式下,自动输入用户名和密码
- hdu1032解题报告
- ubuntu下使用CPU频率控制
- hud1047 java大数忽略空格
- CDOJ 点球大战(penalty)
- 车载影音导航Mtv下载
- DCT, DST, Walsh, Hadamard , Haar和Slant图像处理程序
- Python学习系列五:模块
- 循环链表