因为公司使用了gerrit,导致每次推送代码的指针从refs/heads/*变成了refs/for/*,而我一直用IDEA自带的提交(懒的敲命令),每次都往refs/heads/*提交,每次都不成功,所以记录下修改命令: git config remote.origin.push refs/heads/*:refs/for/* 本栏目推荐文章linux 安装最新版本gitgit bash报错fatal: detected dubious ownership in repository at的解决方法前缀集合相等linux ubantu新建用户su后不显示用户名、路径等前缀问题解决方案git commit规范Git提交规范如何把已有项目上传到git一段shell代码可用于git部署代码到服务器的操作openEuler欧拉设置git pull免密git常用命令前缀 Git前缀git 前缀 分支git tag 前缀 前缀trie 前缀u4 前缀css 前缀 算法 高维 前缀 前缀14 前缀 笔记