[英]R-Studio push and pull without username and password with GIT and 2 factor auth doesn't work?
[英]Git push prompts for username and password but pull doesn't why?
我正在使用Mac Osx,并且我希望git pull在拉之前还要查询用户名和密码。
git config --global --unset credential.helper
它可以与“ git push”一起使用,但不能与“ git pull”一起使用,是否可以同时为两者启用用户名和密码提示?
提前致谢!
(以root用户身份)打开控制台,然后键入:
git config --global --unset credential.helper
我们告诉git禁用帮助程序,以免每次执行这些指令时都输入密码。 这样,每次我们从存储库中拉出或推送时,都会要求我们输入密码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.