1.gitignore文件:只作用在未跟踪文件时
已加入跟踪的文件,在提交时不想提交,第一种方案可以尝试-删除
提醒:删除了,本地记录就没有了...
第一步: git rm --cached .history -r
git add . 之后 git status:
new file: .history/src/assets/styles/variable_20210726172758.
new file: .history/src/assets/styles/variable_20210726172804.
new file: .history/src/main_20210726171549.ts
new file: .history/src/main_20210726172524.ts
git rm --cached .history -r 之后:
rm '.history/src/App_20210726173202.vue'
rm '.history/src/App_20210726173221.vue'
rm '.history/src/App_20210726173223.vue'
rm '.history/src/App_20210726173228.vue'.history文件夹下就没有这些文件的本地记录了
第二步:.gitignore文件 添加
*.history
2.gitlab 设置SSH秘钥:
第一步: 打开git bash 输入 ssh-keygen -t rsa -C "1500...@163.com" 回车
第二步:两次回车 可以不输入
第三步:进到C盘-> 用户 -> 自己权限目录 -> .ssh -> 打开.pub文件,copy到gitlab的秘钥中
3.git bash右键消失:
第一步:命令行输入: regedit
第二步:找到HKEY_CLASSES_ROOT\Directory\Background
第一件事:找到shell, 右键-新建项-点击,命名为 open in git
右边编辑区:右键-编辑-数据值为Git Bash Here, 此为右键菜单显示的值
第二件事:继续右边编辑区:右键-新建-字符串值,命名为Icon,值为git 图标地址-双引号
第三件事:点击open in git 右键-新建-项,命名为command 值为本地bash.exe完整路径
第三步:关闭注册表
4.Node Sass does not yet support your current environment: Windows 64-bit
起因:升级了node版本12->14,node-sass报错,
node版本 与 node-sass 不兼容
1.npm uninstall --save node-sass
2.node降级 npm install --save node-sass@4.13.1 -D
3.使用cnpm
5.webpack能做啥
6.eslint飘红:
“vetur.experimental.templateInterpolationService”: false,
“vetur.validation.template”: false,
“vetur.validation.style”: false,
“vetur.validation.script”: false
https://www.cnblogs.com/alice626/p/11463332.html