筆記-關於GitHub的操作

很長時間沒有更新過GitHub了,有些普通操作不知道哪兒是哪兒了,特別增加一篇文章,記錄一些GitHub常用的操作,方便後期使用,持續更新中

目錄

  • 1、新建代碼倉庫
  • 2、使用賬號密碼提交,報錯問題
  • 3、Trending鏈接

1、新建代碼倉庫

2、使用賬號密碼提交,報錯問題

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/CodeQiangZi/GitHubTrendingRN.git/'

官方說明
從2021年8月13日開始,原先的密碼憑證就不能用了,必須使用個人訪問令牌(personal access token),就是把你的密碼替換成token!

解決方案
方案1、配置SSH方式,這裏不做過多描述,配置方式可參考 Mac 電腦生成.ssh公鑰
方案2、配置token(如下圖所示)


3、Trending鏈接

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章