cd existing_repo //打开项目目录 git remote remove origin //删除远程库 git remote add origin [SSH URL or HTTP URL] //添加远程库 git push -u origin --all //将branch push到程库 git push -u origin --tags //将tag push到远程库