Vue最简单的页面
<template>
<div id="app">
<h1>hello word</h1>
</div>
</template>
import Vue from 'vue'
import app from'./App.vue'
var vm = new Vue({
el:'#app',
render c=>c(app)
})
使用Git打包文件
- 创建.gitignore文件,设置忽略文件
node_modules
.idea
.vscode
.git
- 创建README.md文件,设置项目使用信息
#第一段
##第二段
###第三段
- 创建文件,添加开源协议
The MIT License (MIT)
Copyright (c) 2014-present Evan You
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
创建本地存储
-
创建本地仓储
git init -
查看所有文件状态
git status -
标红文件是未被提交的文件,添加文件 git add .
-
绿色是已添加待提交文件,提交文件
git commit -m "init my project" -
白色已成功提交
-
生成SSH公钥 【blog.csdn.net/xiayiye5/ar…
上传代码
-
git remote add origin 【仓库链接】 -
git push -u origin master
更新代码
git add .git commit -m "提交信息"git push