GitHub学习二-将本地Git库与Github上的Git库相关联

0 git clone 

如果是从自己的github clone,一键搞定,和三步的git remote add功能一样.

1.创建本地库

新建目录,右键git bash here,输入

git init

创建本地版本库成功,多了一个.git的隐藏文件夹,存放本地git库的信息

2.将本地Git库与Github上的Git库相关联

输入

 git remote add origin git@github.com:zwxbest/UnityEditorUtilities.git

 远程git库地址

origin是这个版本库的名字,以后如果查看或者修改时需要用到.

其他很多参数可以参考https://git-scm.com/docs/git-remote

 
原文地址:https://www.cnblogs.com/ptqueen/p/6603666.html