让本地仓库和远程仓库关联

1. 建立远程库 要保证仓库是空的

不能选添加readme文件

2.Git remote add origin git@github.com:lac1310372195/testxiawu.git 

建立本地仓库和远程仓库的链接

Git push -u origin master

第一次提交 可以带 参数 -u

3.从远程仓库克隆 git clone  url地址

4.

原文地址:https://www.cnblogs.com/liancai001/p/10637617.html