git 报错 You can only push commits that were committed with one of your own verified emails.
1.报错
remote: GitLab: You cannot push commits for 'mailto:xxxx.sss@trip.com'. You can only push commits that were committed with one of your own verified emails.
To git.dev.sh.ctripcorp.com:yj.shao/hello-world.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@git.dev.sh.ctripcorp.com:yj.shao/hello-world.git'
2.原因
commit的时候邮箱不一致
3.解决
$ git log
$ git reset --hard 9e76350248a46a16b68fef25d27e25fcd4d65312 # 回滚到没错
$ git config --global user.email "你的邮箱地址"
改下邮箱,重新conmmit
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 从二进制到误差:逐行拆解C语言浮点运算中的4008175468544之谜
· .NET制作智能桌面机器人:结合BotSharp智能体框架开发语音交互
· 软件产品开发中常见的10个问题及处理方法
· .NET 原生驾驭 AI 新基建实战系列:向量数据库的应用与畅想
· 从问题排查到源码分析:ActiveMQ消费端频繁日志刷屏的秘密
· C# 13 中的新增功能实操
· Supergateway:MCP服务器的远程调试与集成工具
· Vue3封装支持Base64导出的电子签名组件
· 万字长文详解Text-to-SQL
· Ollama本地部署大模型总结