Git基本使用&&Vue新建项目
Git基本使用&&Vue新建项目
Git基本使用:
☆☆☆☆☆粘贴:shift+insert
- 拷备项目:git clone <仓库地址>
- 创建分支:git branch
- 创建并进入分支:git checkout-b (checkout也可以?)
- 切分支:git checkout .
- 查看状态:git status
- 添加所有文件:git add.
- 提交:gitcommit-m’这里是当前提交的描述’
- 拉取:git pull
- 推送:git push
- 查看分支:git branch–list
- 查看分支(包含远程分支):git branch-a
VsCode命令:
- ctrl+~ (打开终端)
Vue新建项目:(部分转载自https://www.jianshu.com/p/02b12c600c7b)
- 在桌面(或任意地方)新建一个文件夹,进入。
- 命令行进入该文件夹后,
vue init webpack ”项目名称“
。 -
4.cnpm install(安装依赖)
5.npm run dev (ok啦!)
Vue配置路由:
1.在router的index.js界面:
2.把Vue自带的页面删除,好像就没了???