【Git】推送Github失败:remote: Permission to xxx/*.git denied to xxx

在github上,创建了token,推送代码报没权限

bash 复制代码
#设置token
git remote set-url origin <your.token>@github.com/<your.name>/hello-git.git

#推送代码
#git push -u origin main
remote: Permission to xxx/hello-git.git denied to xxx.
fatal: unable to access 'https://github.com/xxx/hello-git.git/': The requested URL returned error: 403

解决:在生成token时,需要勾选repo下面这些权限

(ps: 很久很久没用github了,一直用gitee,依稀记得之前是没有这些token权限功能的)

推送成功

相关推荐
小兵张健13 小时前
开源 playwright-pool 会话池来了
前端·javascript·github
goodspeed13 小时前
Git Worktree:多分支并行开发的利器
git·github
Moment2 天前
Vibe Coding 时代,到底该选什么样的工具来提升效率❓❓❓
前端·后端·github
雮尘2 天前
让 AI Agent 高效并行开发的命令-git worktree
人工智能·git·agent
有道AI情报局3 天前
网易有道龙虾 NAS 服务器部署与实战指南
github
徐小夕3 天前
JitWord 2.3: 墨定,行远
前端·vue.js·github
南果梨3 天前
OpenClaw 完整教程!从安装到使用(官方脚本版)
前端·git·开源
CoovallyAIHub3 天前
实时视觉AI智能体框架来了!Vision Agents 狂揽7K Star,延迟低至30ms,YOLO+Gemini实时联动!
算法·架构·github
CoovallyAIHub3 天前
开源:YOLO最强对手?D-FINE目标检测与实例分割框架深度解析
人工智能·算法·github