我在Windows上使用Git Bash。當我做pull/push請求時,git不會要求輸入密碼,但這是非常必要的。 我怎麼能這樣做呢?如何讓git bash在你做拉/推請求時要求密碼?
0
A
回答
0
運行git remote -v
如果回購是在像Github上託管,你應該看到這樣的迴應:
origin [email protected]:username/repo.git (fetch)
origin [email protected]:username/repo.git (push)
這意味着你在爲你的回購SSH協議,並且您需要切換到HTTPS:
git remote set-url origin https://github.com/username/repo.git
如果您自己託管git服務器,這會變得更加複雜。
+0
跑了。我得到 原點https://[email protected]/repo.git(獲取) 原點https://[email protected]/repo.git(推送) – Anastasia
+0
切換到HTTPS。 'git remote set-url origin https://[email protected]/repo.git' –
相關問題
- 1. 玳瑁git在每次拉和推操作時要求密碼
- 2. Git:推動bitbucket不要求密碼
- 3. GIT pull請求root密碼
- 4. Github:推拉請求
- 5. 如何讓bash腳本要求輸入密碼?
- 6. 如何讓Netbeans不要求主密碼?
- 7. 獲取git的拉請求,而推
- 8. 每次我拉或推Git時要求輸入用戶名和密碼
- 9. Git每次推送時都要求輸入密碼,我用ssh
- 10. 如何使ansible只在要求時要求成爲密碼
- 11. Git通過HTTP請求密碼兩次
- 12. 讓sudo通過GUI請求密碼
- 13. git外部的拉請求
- 14. 查找爲Git拉請求
- 15. Powershell在每次拉而不是啓動時都要求提供git RSA密碼?
- 16. HOWTO禁用密碼請求
- 17. 空密碼的請求
- 18. 如何使.htaccess始終請求密碼
- 19. 解決拉請求衝突時如何強制git pull
- 20. 如何在使用servlet時在HTTP請求中隱藏密碼
- 21. Git工作流(提交/推送/創建拉取請求)
- 22. 如何做Ajax請求?
- 23. 強制密碼要求
- 24. IBM Bluemix Git存儲庫推送請求
- 25. 不要求保存密碼
- 26. 合併拉請求
- 27. .htaccess不要求密碼
- 28. git bash在嘗試拉取或提取時詢問密碼。
- 29. Roboform要求保存密碼
- 30. Xamarin.Forms UnhandledException當做請求時
即使未輸入密碼,是否仍在拉/推工作? –
你使用的是https協議嗎? –
'git config -l'輸出任何'credential'選項嗎? – crea1