1.安装环境:
cmd中查看:node -v;npm -v; git --version;
码云创建一个关联的git项目仓库
git bash操作:
码云中的git和本地git关联
码云>>>设置>>ssh公钥>>>怎样生成公钥>>>指令>>(https://gitee.com/help/articles/4181)
1.ssh-keygen -t rsa -C "@qq.com">>>
Enter file in which to save the key (/c/Users/LG/.ssh/id_rsa):回车
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/LG/.ssh/id_rsa.
Your public key has been saved in /c/Users/LG/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:hG+g0hAExgxtkY@qq.com
The key's randomart image is:
+---[RSA 2048]----+
|X#B+.+o.. oooo |
|*=X* ..+.+..E + |
|.o=.o + +. o o . |
| o.o.. + |
| ooo S |
| .. . |
| |
| |
| |
+----[SHA256]-----+
2.cat ~/.ssh/id rsa.pub>>>ssh key
把密钥全部粘贴复制到ssh密钥配置中,确定(可以直接查看自己的文件内容id_rsa.pub中内容复制即可)
3.ssh -T git@gitee.com(设置关联)
4.克隆代码 git clone git@gitee.com:luo/Travel.git
5.安装vue cli ( https://cli.vuejs.org/):npm install -g @vue/cli
6.创建项目: vue create my-project///vue init webpack Travel(有可能提示安装:n
npm install -g @vue/cli-init
)
7.最后一步:通过git保证项目一致:cd 进入项目中.git目录下(看推送项目到码云仓库)
vue搭建环境
最新推荐文章于 2020-05-09 16:26:59 发布