前端工具类

git 篇

推送本地项目至线上仓库

plan Agit

cd deom
 git init
 git remote add origin https://gitee.com/demo.git // 你的仓库地址
 git add .
 git commit -m '备注信息'
 git push -u origin master -f // 强制提交
复制代码

git 忽略提交的文件

plan Aspa

在根目录下新建.gitignore 文件。code

/file/                 忽略文件夹
 *.exe                  忽略某种类型的文件
 /file/fileName.js      忽略指定的文件
复制代码

error 列表

git pull errorrem

git pull origin master --allow-unrelated-histories

// 设置了默认分支
git pull --allow-unrelated-histories
复制代码

持续更新.....string

相关文章
相关标签/搜索