我在GitHub帐户上删除了一个存储库项目,并且无法使用新的存储库名称上传该代码。
我尝试使用以下命令在新文件夹名称和GitHub存储库名称下上传代码:
git init
git add .
git commit -m "first commit
git remote add origin https://github.com/ccartis/Space_Invaders.git
git push -u origin master
没有用于解决此问题的代码。
这是我的错误消息:
$ git commit -m " First commit"
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
$ git push -u origin master
remote: Repository not found.
fatal: repository 'https://github.com/ccartis/Alien-Invasion-Game.git/' not found