[英]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.