方法一: git remote set-url origin your_new_git_url 方法二: git remote rm origin git remote add origin your_new_git_url