在git首次提交时出错以及解决方式

    xiaoxiao2021-12-12  7

    [root@iZ948ycksu4Z git]# git push root@127.0.0.1's password: No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'. fatal: The remote end hung up unexpectedly error: failed to push some refs to 'root@127.0.0.1:/home/git/' [root@iZ948ycksu4Z git]# git push origin master root@127.0.0.1's password: Counting objects: 1179, done. Compressing objects: 100% (1152/1152), done. Writing objects: 100% (1179/1179), 79.82 MiB | 2.59 MiB/s, done. Total 1179 (delta 524), reused 0 (delta 0) To root@127.0.0.1:/home/git/ * [new branch] master -> master [root@iZ948ycksu4Z git]#

    最近新建了一个项目,在首次git push的时候出错了,对于首次推送,我们只需要使用"git push origin master"就可以了,如上面的代码所示。

    转载请注明原文地址: https://ju.6miu.com/read-900048.html

    最新回复(0)