git 下载代码到本地
一、创建文件夹,初始化git
Administrator@MacBook MINGW64 ~/Desktop/Git-Damu/sz_18_0715_H5 (vueDemo)
$ git init
Reinitialized existing Git repository in C:/Users/Administrator/Desktop/Git-Damu/sz_18_0715_H5/.git/
二、添加远程仓库
要添加一个新的远程仓库,可以指定一个简单的名字,以便将来引用,运行 git remote add [shortname] [url]:
Administrator@MacBook MINGW64 ~/Desktop/Git-Damu/sz_18_0715_H5 (vueDemo)
$ git remote origin http://github.com/betterDamu/sz_18_0715_H5
三、查看目录下的所有项目
Administrator@MacBook MINGW64 ~/Desktop/Git-Damu/sz_18_0715_H5 (vueDemo)
$ git remote -v
origin https://github.com/betterDamu/sz_18_0715_H5 (fetch)
origin https://github.com/betterDamu/sz_18_0715_H5 (push)
四、下载代码到本地
Administrator@MacBook MINGW64 ~/Desktop/Git-Damu/sz_18_0715_H5 (vueDemo)
$ git clone https://github.com/betterDamu/sz_18_0715