我嘗試安裝 4.5 .net 框架,訪問令牌,用戶名密碼訪問他們要求的所有內容。但沒有成功。這是我昨天面臨的所有問題。我使用 Windows 7 Ultimate Service Pack 1。
像這樣的 git 錯誤
Home_System@Home_System-PC MINGW64 ~/Desktop/myproj (master)
$ git commit -m "first commit"
[master (root-commit) ef8fd3c] first commit
2 files changed, 2 insertions( )
create mode 100644 hello.py
create mode 100644 my.py
Home_System@Home_System-PC MINGW64 ~/Desktop/myproj (master)
$ git status
On branch master
nothing to commit, working tree clean
Home_System@Home_System-PC MINGW64 ~/Desktop/myproj (master)
$ git remote add origin https://github.com/arshad007hossain/myproj.git
Home_System@Home_System-PC MINGW64 ~/Desktop/myproj (master)
$ git pull origin master
fatal: couldn't find remote ref master
Home_System@Home_System-PC MINGW64 ~/Desktop/myproj (master)
$ git pull origin master
fatal: couldn't find remote ref master
Home_System@Home_System-PC MINGW64 ~/Desktop/myproj (master)
$ git push --force origin master
fatal: An error occurred while sending the request.
fatal: The request was aborted: Could not create SSL/TLS secure channel.
Logon failed, use ctrl c to cancel basic credential prompt.
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/arshad007hossain/myproj.git/'
uj5u.com熱心網友回復:
在您的情況下,發送到 GitHub 的憑據包含不是個人訪問令牌或 OAuth 令牌的內容。您的憑證管理器可能是使用 .NET 的 Git Credential Manager Core,這對您沒有幫助。由于您使用的是沒有安全更新或其他修復程式的作業系統 (Windows 7),這可能無法幫助 GCM Core 正常作業。
Windows 7 不一定正確支持 TLS 1.2,因此,當 GCM Core 無法正常作業時。TLS 1.2 被認為是當今 Internet 上 TLS 的最低安全版本,而且大多數網站,包括 GitHub,都不支持任何更少的版本。
它通常還負責確保您運行的系統接收定期安全更新,因為它可以防止您的計算機受到危害并被用來對其他系統發起攻擊。即使您不關心資料的安全性和完整性,其他人也會欣賞您的系統不是 DDoS 網路中的機器人。
如果你真的需要同時推送,你可以嘗試切換到wincred憑證助手,它可能沒有這個問題,然后使用以下命令洗掉所有現有的憑證:
$ git config --unset-all credential.helper
$ git config --global credential.helper wincred
$ echo url=https://github.com | git credential reject
完成此操作后,應該會在您推送時提示您輸入用戶名和密碼。出現提示時輸入您的用戶名,并在提示輸入密碼時,轉到GitHub 的個人訪問令牌頁面,使用repo和gist范圍生成令牌,然后粘貼該令牌而不是輸入您的密碼。這應該使事情暫時起作用。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/396244.html
