与github存储库建立连接后,我们如何从桌面添加文件到存储库
pankaj@kindlebit-desktop:~$ git remote add origin https://github.com/SevenVerbs/ARS.git
fatal: remote origin already exists.
pankaj@kindlebit-desktop:~$ git push origin master
fatal: 'e9421486fcc16bbb7d6f5630940cf333d4455c32' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
pankaj@kindlebit-desktop:~$
答案 0 :(得分:1)
就像Git说的那样,已经有了一个偏远的起源'定义。
要删除现有远程,请使用git remote remove origin
或如果它不起作用git remote rm origin
。然后,您可以使用
git remote add origin https://github.com/SevenVerbs/ARS.git