常见处理 .gitignore/SSH/GitBash/nodeSass/eslint飘红

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值