我首先通过选择new repository在github中创建了一个存储库。然后它给了我以下上传选项
or create a new repository on the command line
echo "# xx" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/xxxxxx/xx.git
git push -u origin master
â¦or push an existing repository from the command line
git remote add origin https://github.com/xxxxxx/xx.git
git push -u origin master
当我尝试任何一个选项时,它似乎都不会将文件上载到
https://github.com/xxxxxx/xx.git
相反,它看起来好像无法远程存储库,并试图提交到我从中提取它的现有存储库。不确定如何将其指向远程存储库。如果我在项目文件夹上执行git分支,我可以看到现有git存储库的分支
我错过了什么