我正在使用 Git bash 将我的“新文件夹”推送到 github。
我尝试了以下步骤,
cd git
git add newfolder
git commit -m 'first commit'
git remote add origin7 http://host.com/project.git
一切都很顺利,但是在将其推入 github 时失败了(非快进)。
git push origin7 master
![rejected] master -> master (non-fast-forward)
error: failed to push some refs to ' http://host.com/project.git '
提示:更新被拒绝,因为您当前分支的提示落后于
提示: 它的远程对应物。合并远程更改(例如“git pull”)
提示:在再次推送之前。
提示:有关详细信息,请参阅“git push --help”中的“关于快进的说明”。
请让我知道如何解决这个问题。提前致谢。