先在本地git init创建仓库远程先建一个仓库,记录git网络地址 https://github.com/***.git本地执行git remote add origin https://github.com/***.git 关联成功