git push ‘No refs in common and none specified’doing nothing

来源:互联网 发布:linux 挂载硬盘查询 编辑:程序博客网 时间:2024/05/22 01:58

修改多个git提交的问题,即一次提交多个版本库更新

目前是在github下新增一个新的版本库,即同步到不同的服务器上

编辑.git 下的config

[remote "origin"]

        url = https://username@github.com/username/project/
        url = http://username@192.168.89.1:8000/project

        fetch = +refs/heads/*:refs/remotes/origin/*

上面的配置会提示输入两次密码


在git push后会显示

‘No refs in common and none specified’doing nothing

输入git push origin master即可解决问题

0 0
原创粉丝点击