git push免输入账号和密码方法
2016-10-19 08:55
295 查看
最近在做些oj,所以需要频繁的git push提交代码,每次都要输入帐号和密码,感觉不舒服,于是乎就做了如下设置,然后就可以开心的提交啦~
Linux或者Mac下方法:
创建文件,进入文件,输入内容:cd ~ touch .git-credentials vim .git-credentials https://{username}:{password}@github.com[/code]
在终端下输入:git config --global credential.helper store
打开~/.gitconfig文件,会发现多了一项:[credential] helper = storeWindows方法:
方法同上面,只是第一步创建git-credentials有点不同。在%HOME%目录中,一般为C:\users\Administrator,也可以是你自己创建的系统用户名目录,反正都在C:\users\中。文件名为.git-credentials,由于在Window中不允许直接创建以"."开头的文件,所以需要借助git bash进行,打开git bash客户端,进行%HOME%目录,然后用touch创建文件 .git-credentials, 然后后面的操作同上面。
还有一种方法参考Windows下设置git push免密码。参考文献:
git push时候总提示输入账号密码 - 免除设置
Windows下设置git push免密码
相关文章推荐
- git push免输入账号和密码方法
- git push 避免输入用户名和密码的方法
- git push时候总提示输入账号密码 - 免除设置
- git 每一次pull或者push的时候,都需要输入密码和账号
- git生成ssh key 避免每次push都要输入账号密码
- github添加ssh key之后push还要输入账号密码的解决方法
- git pull push 不用输入用户名和密码的方法 免输密码
- linux服务器git pull/push时避免频繁输入账号密码
- 如何让Git记住你的账号密码,不用每次push时都输入账号密码
- Git免输入账号密码设置方法
- git push 总是要输入账号密码解决办法
- Git Push clone避免每次输入用户名和密码的方法
- git push github 远程仓库 要求每次输入账号密码问题
- 让执行git push、git pull等命令时不再输入用户名,密码的简单有效方法之一
- linux下每次git clone不需输入账号密码的方法
- 如何让git记住你的账号密码?不用每次push的时候都输入账号密码
- git push时候总提示输入账号密码,如何免除设置?
- git生成ssh key 避免每次push都要输入账号密码
- Git免输入账号密码设置方法
- linux下,每次git pull 或者git push都需要输入账号密码的问题以及git remote 的一些基本操作