我将项目提升到github,首先打开github并放入New Repository,然后放入“ Repository Name”,然后选择“ Private”,然后创建Repository”,然后出现了一系列说明。 ,然后我在Visual Studio中打开了该项目,然后在Visual Studio中打开了终端,并写下了以下这些说明:
git init
git commit -m "first"
git config --global user.email "Nour77@gmail.com"
git config --global user.name "nour-George"
git remote add origin https://github.com/nour-George/FFFF.git
git push -u origin master
但是当我发布最后一条指令时出现了此错误:
error: failed to push some refs to 'https://github.com/safaa-Haddad/Base.git'
我该如何解决该问题,并且在应用上述步骤时是否出错?
答案 0 :(得分:1)
您需要在提交文件之前添加文件
git add。
git commit -m“提交消息”
git push -u原始主机