错误:
fatal: ‘origin‘ 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.
解决办法:
[email protected] /f/gitrepo/TestJedis (master) $ git remote add origin [email protected]:TestRedis.git [email protected] /f/gitrepo/TestJedis (master) $ git push origin master ssh: gitserver: no address associated with name fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. [email protected] /f/gitrepo/TestJedis (master) $ git remote set-url origin [email protected]:afredlyj/TestRedis.git [email protected] /f/gitrepo/TestJedis (master) $ git push origin master Enter passphrase for key ‘/c/Users/Elvis/.ssh/id_rsa‘: Counting objects: 8, done. Delta compression using up to 2 threads. Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 2.07 KiB, done. Total 7 (delta 2), reused 0 (delta 0) To [email protected]:afredlyj/TestRedis.git 7bcfb1a..b02a2fe master -> master [email protected] /f/gitrepo/TestJedis (master)
时间: 2024-08-06 10:51:51