有两种方法,只推荐这一种:
git remote set-url origin [url]
另外一种:
git remote rm origin git remote add origin [url]
两种思路一样!