我把我的吉特设置弄得一团糟。当我检查我的远程设置时
git remote -v我得到了
origin https://cx1964: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@github.com/cx1964/home_claude_bin_scripts.git (fetch)
origin https://cx1964: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@github.com/cx1964/home_claude_bin_scripts.git (push)
origin https://github.com/cx1964/cx1964Repos_fastAPI_React_Redis.git (push)但我想
origin https://github.com/cx1964/cx1964Repos_fastAPI_React_Redis.git (fetch)
origin https://github.com/cx1964/cx1964Repos_fastAPI_React_Redis.git (push)我怎样才能做到这一点?
发布于 2022-04-08 14:00:28
git remote remove origin删除当前源远程,然后用
git remote add origin https://github.com/cx1964/cx1964Repos_fastAPI_React_Redis.git
还可以用以下方式更改远程url
git remote set-url origin https://github.com/cx1964/cx1964Repos_fastAPI_React_Redis.githttps://stackoverflow.com/questions/71798278
复制相似问题