git push rejected

摘要:
代码无法在idea中提交,因此命令行:gitpush;错误报告:写入对象中100%,3.62 KiB | 928.00 KiB/s,共完成30次,重复使用0(差异0)远程:yinfuqing@163.com邮箱不符合要求,请确保使用公司邮箱。

在ideal里面突然无法提交代码了

于是使用命令行:

git push;

报错:

写入对象中: 100% (30/30), 3.62 KiB | 928.00 KiB/s, 完成.
总共 30 (差异 13),复用 0 (差异 0)
remote: ======================================================================
remote: git log 中发现 yinfuqing@163.com 邮箱不符合要求,请务必使用公司邮箱。
remote: 请再项目下面设置正确 Git 提交信息:
remote: 
remote:   git config user.name 'fuqing.yfq'
remote:   git config user.email 'fuqing.yfq@alibaba-inc.com'
remote:   git-m
remote: 
remote: 后面一个指令使用了 git-m 命令自动修改 log 信息,获得 git-m 方法:
remote: 
remote:   Redhat:
remote:     sudo yum install git-m -b test -y
remote:   Windows:
remote:     在 msysgit 的命令行中运行:
remote:     curl http://openbase.cn-hangzhou.oss.aliyun-inc.com/git-m -o git-m
remote:   Mac OS X :
remote:     curl  http://openbase.cn-hangzhou.oss.aliyun-inc.com/git-m -o /usr/local/bin/git-m
remote:     chmod 775  /usr/local/bin/git-m
remote: 
remote: 详细参阅: http://baike.corp.taobao.com/index.php/Git-m
remote: 
remote: 如果是开源项目,请联系项目的管理员去掉项目的 Email 验证限制
remote: 
remote: ======================================================================

方法上面已经写的很清楚了:

先获取权限:

curl  http://openbase.cn-hangzhou.oss.aliyun-inc.com/git-m -o /usr/local/bin/git-m
    chmod 775  /usr/local/bin/git-m

然后执行:

git config user.name 'fuqing.yfq'
git config user.email 'fuqing.yfq@alibaba-inc.com'
 git-m

然后让你输入错误的邮箱:

 mz-pms git:(feature/20200603_6740850_mahua_add_venue_1) ✗ git config user.name 'fuqing.yfq'
➜  mz-pms git:(feature/20200603_6740850_mahua_add_venue_1) ✗ git config user.email 'fuqing.yfq@alibaba-inc.com'
➜  mz-pms git:(feature/20200603_6740850_mahua_add_venue_1) ✗ git-m
Input the wrong email that you want to fix(yinfuqing@163.com)?yinfuqing@163.com
Input the correct username(): fuqing.yfq
Input the correct email(): fuqing.yfq@alibaba-inc.com
e[1;32mINFO:e[0mI will changed yinfuqing@163.com to fuqing.yfq <fuqing.yfq@alibaba-inc.com>
WARNING: git-filter-branch has a glut of gotchas generating mangled history
         rewrites.  Hit Ctrl-C before proceeding to abort, then use an
         alternative filtering tool such as 'git filter-repo'
         (https://github.com/newren/git-filter-repo/) instead.  See the
         filter-branch manual page for more details; to squelch this warning,
         set FILTER_BRANCH_SQUELCH_WARNING=1.
Proceeding with filter-branch...

Found nothing to rewrite

就可以了

 

免责声明:文章转载自《git push rejected》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Android学习——写个小实例&amp;lt;转&amp;gt;RestKit在iOS项目中的使用,包含xcode配置说明下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Git 本地保存账号密码的删除或修改

转自:https://blog.csdn.net/lwqldsyzx/article/details/61228299 Git 本地拉取代码时需要输入用户名和密码时,会自动将用户名密码信息保存起来。需要清除时操作如下: 1 win10 系统下进入控制面板 》 用户帐户 》 管理你的凭据选择 [Windows 凭据] git 保存的用户信息在普通凭据列表里...

NodeJS使用npm和cnpm高速下载

Npm配置 //设置registry npm config set registry https://registry.npm.taobao.org //查看registry npm config get registry //查看配置列表 npm config list //查看所有的默认配置 npm config ls -l //查看安装的module...

git代码合并与冲突

场景: 开发人员:A和B 1、A拉取master分支:git pull orgin master; 2、B拉取master分支:git pull orgin master; 3、A在分支上开发功能上传到远程代码库,merge到远程master分支上; A创建新的分支release/dev1: git checkout -b release/dev...

Git删除远端分支

1 我们使用命令行来操作,先打开系统的「终端」,或Dos命令行窗口。 2 切换到你git项目所在的目录后,使用 git branch -a命令来查看所有的分支。 3 列出所有分支了,其中上方的是本地的分支,下方的有remotes/origin开头的就是远程分支。 4 假设要删除new-a的远程分支,我们需要先把分支切换到master...

Pycharm 操作Git

拉取代码 我使用的是Pycharm2020,首先我们要在Git上获取Https链接,然后在我们的Pycharm上进行拉取 然后我们可以在Pycharm上面进行换分支操作 使用Pycharm 提交代码 首先在commit里面把修改的代码提交到本地,然后就可以Push到线上了 注意: 如果你是团队合作,一定要在每次Push之前Pull一下代码,这样...

Qt工程文件Pro介绍(转)

转载请注明:http://blog.163.com/hu_cuit/blog/static/122849143201127104232142/ 我也才开始学习QT的菜鸟。但是前几天有同学叫我给他讲一下QT的基本的编程。在过程中我发现了自己的不足,这个要改进。因为我相信我会变成老鸟的。当然我发现同学对QT的工程文件不是很了解,又恰好我以前研究过,看过一些资料...