Local and remote branch git to re-associate

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/yhzhaohy/article/details/90671279

Two days before the name on github to change, and lead to the same address can not be used, the need to re-associate local and remote projects look.
Steps are as follows:

//首先删除原来的地址
git remote rm origin

//添加新的远程关联地址
git remote add origin 新的地址

Guess you like

Origin blog.csdn.net/yhzhaohy/article/details/90671279