天天看点

git 使用总结克隆项目到本地

git项目初始化

  • 克隆项目到本地
    • git clone https://xxxx.com/web/FE/xxxx.git

克隆项目到本地

首先你要保证你本地git已经完成初始化

git clone https://xxxx.com/web/FE/xxxx.git

安装 npm

npm install

安装 vue

vue install --save

如果有其他文件下载不了,可以考虑爬墙,或着使用cnpm代替: npm install -g cnpm --registry=https://registry.npm.taobao.org

npm install node-sass

然后打开git bash 切换到自己想要的分支

git checkout -b XXX origin/XXX

npm run dev