首页 > 解决方案 > 致命:在我创建并添加个人访问令牌后找不到存储库

问题描述

  1. 我错过了什么?
  2. 如何推送到我的 git 存储库?

标签: git

解决方案


试试这个命令

将字段替换为

  • your-personal-access-token 与您生成的人员访问令牌
  • 你的用户名和你的 github 用户名
  • your-repo 与您要推送的仓库的名称

检查您是否提供了对您的个人访问令牌的回购访问权限

git remote set-url origin https://your-personel-access-token@github.com/your-username/your-repo.git

推荐阅读