I misstyped "git remote add origin...".
Actually, i typed "git remote add orginin". How can i change it back to origin?
I rather not delete my local repository, if i can just change orginin to origin it would be perfect.
I checked with git remote -v
.
I got orginin ssh://git@...git (fetch)
orginin ssh://git@... (push)
I tried git remote set-url origin git://newurl
-> error: No such remote 'origin.
Thanks to eftshift0, the command git remote rename orginin origin
fixed it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.