簡體   English   中英

如何在 Elcipse IDE 中設置新的 Git 身份驗證

[英]How to Setup New Git Authentication in Elcipse IDE

我最近從 Github 那里得到了一個 email,告訴我 git 將不再使用密碼,而是使用身份驗證密鑰來提交和推送更改。 我將如何設置此身份驗證密鑰並告訴 Eclipse 使用此密鑰而不是我最初提供的密碼?

首先,創建一個PAT(個人訪問令牌)

其次,在 Eclipse 中,刪除你當前的憑證,下次推送時,Eclipse 會再次詢問它們(GitHub 用戶名,以及你的令牌——PAT——作為密碼)

請參閱“如何讓 Egit 記住密碼和用戶名?

  • From Eclipse toolbar navigate to Window > Preferences > Security > Secure Storage > Contents Tab > [Default Secure Storage] > GIT > "whatever github url"
  • Select url 並刪除當前用戶。
  • 重啟 Eclipse

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM