随笔分类 - IDEA相关
摘要:VUE 中 http 请求涉及变量解析 有变量解析的时候,相当于插入了一个 $表达式,这时候2端的引号要改成反引号 `` 来解析,否则用 单引号它就会当作字符串了 this.$http({ // 当涉及变量解析时,使用反引号 `` url: `http://localhost:9090/commod
阅读全文
摘要:数据库连接时,没有处理中文问题 原因分析: https://blog.csdn.net/sungancd/article/details/119183605 datasource: username: root password: root # 设置 SSL = false url: jdbc:my
阅读全文
摘要:Vue template 中含有2个 element 控件,需要使用 div 包裹起来,否则报错 复制到 el-tree 后面 发现编译报错 使用 div 包裹起来
阅读全文
摘要:取消 ESLint 检测 ESLint 规则对 Vue 语法格式要求比较严格,在启动 Vue 会给出警告 D:\alq_living\renren-fast-vue\build\webpack.base.conf.js
阅读全文
摘要:新增文件如何打 Patch one:注册监听 two:写回调函数 three:由框架决定调用时机 1. 先 add 后打 patch 2. 撤销 git add 操作【即将文件从暂存区中移除,以恢复到未暂存的状态】 方法1 git reset git reset <file> 它的作用与 git r
阅读全文
摘要:打 patch 报错:corrupt patch at line *** 1. Github 办法 https://github.com/Riscure/optee_fuzzer/issues/7 2. 工具解决 用 vim 编辑下 尝试使用一些工具修复补丁文件的格式,比如 Unix 的 dos2u
阅读全文
摘要:Git Stash https://cloud.tencent.com/developer/article/2177783 Git 会提示“No local changes to save” 在 Git 中,git stash 命令默认情况下只会保存已跟踪的文件的修改和暂存区的内容,而不会保存未被追
阅读全文
摘要:Diff and Patch Git diff 通过 git diff 打 Patch git diff 生成的补丁是展示当前工作目录中的修改(或者两个不同的提交之间的修改),而 git format-patch 通常用来生成提交历史的补丁。 1. 生成当前未提交的更改的补丁 # 这个命令会生成一个
阅读全文
摘要:Git小乌龟 https://tortoisegit.org/
阅读全文
摘要:VSCode 整合 Git 1. 右键 Open in Terminal 使用 git status 查看 2. 新增文件(U:Untracked files) 3. 修改文件(Modify) 4. 删除文件 没有明显标识 5. 查看整体变化 6. 好用插件 1. Git Graph 2. Git
阅读全文
摘要:git (master|REBASE 1/2) 回退提交 git rebase --abort
阅读全文
摘要:Merge Or Rebase 都具备分支间变更的能力:但是二者间实现手段大不相同 1. 实现手段 Merge(总是向前推进提交历史,并不会影响提交的原始状态) 我们在特性分支上,执行 # git 会以 我方、对方、以及双方最近公共祖先 对应的快照 > 执行三路合并生成新的快照 git merge
阅读全文
摘要:git 常用操作 前提:不要通过rebase对任何已经提交到公共仓库中的commit进行修改(你自己一个人玩的分支除外) 1. 撤销 git add 撤销所有的已经 add 的文件 git reset HEAD -- . 撤销某个文件或文件夹 git reset HEAD -- filename 2
阅读全文
摘要:1. 先 Fork,然后设置 origin 和 upstream # 设置 origin git remote add origin https://gitee.com/ronnie24/arkui_ace_engine.git # 设置 upstream git remote add upstre
阅读全文
摘要:Gitee工作流 https://gitee.com/openeuler/community/blob/master/zh/contributors/Gitee-workflow.md 1. Fork 2. 把远程 fork 仓库复制到本地 git clone https://gitee.com/$
阅读全文
摘要:Git 的 origin 和 upstream Fork,本身并不是git工具中的一个命令,也不是对git的扩展,它是在GitHub上的概念,是另一种clone方式——在服务器端的clone。 而我们通常意义上的clone,是将远程repo 复制一份到本地。 当你从GitHub上 clone 一个
阅读全文
摘要:Github进行fork后如何与原仓库同步 https://github.com/selfteaching/the-craft-of-selfteaching/issues/67 1. 场景描述 太多人同时在帮忙修订错别字或优化 xiaolai 的 the-craft-of-selfteaching
阅读全文
摘要:个人信息配置 1. 配置邮箱 git config --global user.email "you@example.com" git config --global user.name "Your Name" 2. 查看 Config 配置信息 config 配置有system级别 global(
阅读全文
摘要:ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository. 1. 改为 https 方式 私有仓库报错:remote 地址设置错误 私有仓库 r
阅读全文

浙公网安备 33010602011771号