我正在学习如何使用Git的教程。我要把文件推送到一个新创建的GitHub回购中。但是,我得到了错误:
Updates were rejected because the remote contains work that you do not have locally.我猜这是因为GitHub回购中有一个由GitHub提供的readme.md文件,而我的本地用户没有,所以我删除了这个文件。但是我还是
现在,当我试图推动
Counting objects: 5, done.failed to push some refs to 'ssh://vinoth.pramati@192.168.6.9:29412/gerrit_prj_1'
在gerrit_server错误日志中,我看到com.google.gerrit.server.git.ReceiveCommits : Only 0 of 1 new change refs