当前位置:网站首页>Support for password authentication was removed on August 13, 2021. Please use a personal access tok
Support for password authentication was removed on August 13, 2021. Please use a personal access tok
2021-09-15 05:16:39 【老周聊架構】
一、前言
有一個多月沒有提交代碼了,今天提的時候怎麼也提交不上去。
意思是你原先的密碼憑證從 2021 年 8 月 13 日開始就不能用了,必須使用個人訪問令牌(personal access token),就是把你的密碼替換成 token。
二、如何生成自己的token
2.1 在 github 官網右上角的頭像點擊 Setting
2.2 選擇開發者設置 Developer setting
2.3 選擇個人訪問令牌 Personal access tokens,然後選中生成令牌 Generate new token
2.4 設置 token 的有效期,訪問權限等
選擇要授予此令牌 token 的範圍或權限
- 要使用 token 從命令行訪問倉庫,請選擇 repo。
- 要使用 token 從命令行删除倉庫,請選擇 delete_repo。
- 其他根據需要進行勾選
2.5 生成令牌 Generate token
如下是生成的 token:
注意!!!
記得把你的 token 保存下來,因為你再次刷新網頁的時候,你已經沒有辦法看到它了,等下 push 代碼的時候用這個生成的 token 代替 password 進行往倉庫推送代碼。
2.6 用自己生成的 token 進行登錄,把上面生成的 token 粘貼到輸入密碼的比特置,然後成功 push 代碼
2.7 建議把 token 直接添加遠程倉庫鏈接中,這樣就不用每次提交代碼都要輸入token 了
git remote set-url origin https://<your_token>@github.com/<USERNAME>/<REPO>.git
<your_token>
:換成你自己得到的 token<USERNAME>
:是你自己 github 的用戶名<REPO>
:是你的倉庫名稱
例如:
git remote set-url origin https://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@github.com/riemann/springboot-test.git/
三、常見問題
如果 push 等操作沒有出現輸入密碼選項,請先輸入如下命令,把之前的密碼認證重置了,之後就可以看到輸入密碼選項了。
git config --system --unset credential.helper
版权声明
本文为[老周聊架構]所创,转载请带上原文链接,感谢
https://chowdera.com/2021/09/20210915051507104k.html
边栏推荐
- Drive module company records
- The revival of technological minimalism
- How to use cqrs to effectively cut the code base according to business functions?
- Lemmy - link aggregator of the federal universe
- Why is reddit so slow and unreliable| HackerNews
- DDD current engineering method portfolio - Kamil
- Supprimer l'avant - dernier noeud de la liste liée
- Septembre 2021 liste des bases de données nationales - Mo Tianlun: Dream poursuit oceanbase, opengauss anti - Super polardb à un autre niveau
- 直击 2021 苹果秋季发布会:iPhone 13 全系降价,苹果彻底放大招?
- Tous les votes!Le projet Open source de weizhong linkis entre dans l'incubation Apache
猜你喜欢
-
Coinbase fell after disclosing regulatory inquiries about loan products
-
直擊 2021 蘋果秋季發布會:iPhone 13 全系降價,蘋果徹底放大招?
-
Cliquez directement sur le lancement d'automne 2021 d'Apple: iPhone 13 réduit les prix de l'ensemble de la gamme, Apple agrandit complètement le mouvement?
-
Web vulnerability - SQL
-
Tom Cat received the attention letter from Shenzhen Stock Exchange: explain the relevance between the main products and the concept of meta universe
-
推荐一款写数学公式的神器。
-
Échelle élastique personnalisée de l'autoscaler knative
-
Ruishu information completed the C2 round of 300 million yuan financing and released new data security products
-
How to automate security compliance using kubernetes?
-
Recommande un artefact pour écrire des formules mathématiques.
随机推荐
- If the "Maginot defense line" fails, how to do a good job in container cloud security?
- Tdsql-a makes every effort to meet the needs of massive data real-time analysis
- Word document recovery software recommendations
- [cjson] cjson learning notes (II)
- [Questions d'entrevue à haute fréquence] À vous de choisir
- 企业级项目实战讲解,我总结了所有面试题,
- 字节跳动历年Android中高级面试题全收录,算法 分布式 微服务
- 字节跳动上千道精选面试题还不刷起来,webrtc音视频开发
- Pénétration du cache et Avalanche du cache
- Can I save multiple product SKU pictures on pinduoduo by computer?
- VIM configuring C + + development environment win10
- 字節跳動上千道精選面試題還不刷起來,webrtc音視頻開發
- Des milliers de questions d'entrevue sélectionnées n'ont pas encore ét é effacées.
- Les questions d'entrevue de niveau intermédiaire et avancé d'Android au fil des ans sont entièrement incluses, et l'algorithme est distribué microservice
- J'ai résumé toutes les questions d'entrevue.
- 字節跳動曆年Android中高級面試題全收錄,算法 分布式 微服務
- 【项目管理/PMP/PMBOK第六版/新考纲】纯干货!敏捷型/Stacey矩阵/vuca/敏捷宣言/冲刺/产品负责人/敏捷团队/敏捷教练/待办事项列表/迭代任务列表/可交付产品增量
- solid works绘制航模发动机
- 爬虫
- Capacity of the Gaussian Two-Way Relay Channel to Within 1/2 Bit
- 分布式session解决方案原理
- PID调节原理分析
- 论文阅读23 - Mixture Density Networks(MDN)混合密度网络理论分析
- 《信号与系统》解读 第1章 信号与系统概述-3:基本的1阶信号--单位阶跃信号、单位斜变信号、单位冲击信号
- 过拟合和欠拟合的区别
- solid works繪制航模發動機
- 【項目管理/PMP/PMBOK第六版/新考綱】純幹貨!敏捷型/Stacey矩陣/vuca/敏捷宣言/沖刺/產品負責人/敏捷團隊/敏捷教練/待辦事項列錶/迭代任務列錶/可交付產品增量
- Solid Works Drawing airmodel Engine
- [Project Management / PMP / PMBOK 6th Edition / New text Guide] pure Dry goods!Matrice agile / Stacey / vuca / manifeste agile / sprint / chef de produit / équipe agile / entraîneur agile / liste de tâches / liste de tâches itérative / incréments de produ
- Recherche de l'optimalité, problème et pratique de la résolution des contraintes pour les Wavelets | y compris le téléchargement de rapports
- Mitsubishi Outlander has obtained the highest safety choice + rating of IIHS in the United States, which is specially applicable to the gasoline version
- Full resolution of hystrix configuration parameters
- The second blog, novice on the road, intensive training is very rich
- 2017/7/9
- Web vulnerability - SQL
- 論文閱讀23 - Mixture Density Networks(MDN)混合密度網絡理論分析
- Lecture de l'article 23 - analyse théorique des réseaux de densité mixte (MDN)
- Analyse du principe de régulation PID
- Principes de la solution de session distribuée
- Capacity of the gaussien two way relay Channel to within 1 / 2 bit