1. 程式人生 > >git上傳檔案時出現origin does not to be a git repository

git上傳檔案時出現origin does not to be a git repository

最近上傳程式碼到GitHub的時候,當我輸入 git push -u origin master的時候,它提示:
origin does not to be a git repository
重新輸入一次:git remote add origin [email protected]:yourusername/test.git
然後再輸入:git push -u origin master 就可以提交了