我的情况是这样的
电脑重装系统, 然后重新clone下来之前连好的远程仓库, 现在貌似不能直接进行push了
$git push remote master
fatal: 'remote' does not appear to be a git repository
fatal: Could not read from remote repository.
解决办法:
我先尝试的是
git remote add origin git@github.com:EvanChoo/leet_code.git
结果:
fatal: remote origin already exists.
然后输入这个,这个不会把GitHub上的仓库删除,貌似删除的是本地的一个记号