id: f0b10faf64b5473188b248da681e16a9
parent_id: 
item_type: 1
item_id: 9453c0383b3e4f379d7930dee66eeb91
item_updated_time: 1764345512223
title_diff: "[{\"diffs\":[[1,\"Gemini-CLI 的三个实战技巧\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":18}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>Gemini-CLI 的三个实战技巧</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"45846\\\"></a>\\\r\\\n<h1>Gemini-CLI 的三个实战技巧</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"\\\"><div style=\\\"max-width: 700px;\\\"><p></p><div style=\\\"--en-blockquote: true; box-sizing: border-box; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial;\\\"><div>原文链接: <a href=\\\"https://mp.weixin.qq.com/s?__biz=Mzk1Nzc0MzExOQ==&amp;mid=2247483852&amp;idx=1&amp;sn=8ec39712a853d6b41b8e6b4848b2190b&amp;chksm=c25dd8e9e0b33168aae9ba8a31a1391082e3fa1de7384389bdad81b81787fef5474b96bbee52&amp;mpshare=1&amp;scene=1&amp;srcid=0815thYhV5wcAWJQLiJ0OMIx&amp;sharer_shareinfo=d3306c8cd5689e5c1f73991bcbed49b1&amp;sharer_shareinfo_first=d3306c8cd5689e5c1f73991bcbed49b1#rd\\\"><span>https://mp.weixin.qq.com/s?__biz=Mzk1Nzc0MzExOQ==&amp;mid=224748...</span></a></div></div><p></p><div style=\\\"\\\"><div><div><div><span style=\\\"\\\">原创</span><span> 拌饭 </span><span><a style=\\\"\\\"> 朱又拌饭 </a></span><span><em></em></span></div><div style=\\\"\\\"><div style=\\\"\\\"><div style=\\\"\\\"><div style=\\\"width: 100%; display: flex;\\\"><div style=\\\"display: flex;\\\"><div style=\\\"width: 7px; height: 7px; background: rgb(255, 205, 119); border-radius: 50%; z-index: 1;\\\"><span style=\\\"\\\"><br/></span></div><div style=\\\"width: 24px; height: 24px; background: rgb(67, 154, 100); border-radius: 50%; text-align: center;\\\"><p style=\\\"font-size: 20px; color: #000;\\\"><strong style=\\\"\\\"><span style=\\\"\\\">1</span></strong></p></div></div><div style=\\\"\\\"><div style=\\\"text-align: left; color: rgb(67, 154, 100); font-weight: bold; letter-spacing: 1px;\\\"><span>Gemini-CLI的记忆功能</span></div></div></div></div><ol style=\\\"list-style-type: decimal;\\\"><li><p style=\\\"\\\"><strong><span>全局记忆 (Global Memory)：</span></strong><span> 位于 </span><code><span>~/.gemini/GEMINI.md</span></code></p></li><li><p style=\\\"\\\"><strong><span>项目记忆 (Project Memory)：</span></strong><span> 项目根目录文件</span><code><span>.gemini/GEMINI.md</span></code><span>，定义整个项目的“基础信息与规范”。</span></p></li><li><p style=\\\"\\\"><strong><span>本地记忆 (Local Memory)：</span></strong><span> 从当前目录向下递归搜索所有子目录中找到的 </span><code><span>GEMINI.md</span></code><span>，指导具体任务的执行。</span></p></li></ol><div style=\\\"\\\"><span><img src=\\\":/eedb8e26fbc146d2b7486e7b91ce167d\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; background-color: transparent; width: auto;\\\" width=\\\"auto\\\"/></span></div><div style=\\\"\\\"><span><img src=\\\":/b690b98fda8542708e816b32e8149918\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; background-color: transparent; width: auto;\\\" width=\\\"auto\\\"/></span></div><div style=\\\"\\\"><div style=\\\"width: 100%; display: flex;\\\"><div style=\\\"display: flex;\\\"><div style=\\\"width: 7px; height: 7px; background: rgb(255, 205, 119); border-radius: 50%; z-index: 1;\\\"><span style=\\\"\\\"><br/></span></div><div style=\\\"width: 24px; height: 24px; background: rgb(67, 154, 100); border-radius: 50%; text-align: center;\\\"><p style=\\\"font-size: 20px; color: #000;\\\"><strong style=\\\"\\\"><span style=\\\"\\\">2</span></strong></p></div></div><div style=\\\"\\\"><div style=\\\"text-align: left; color: rgb(67, 154, 100); font-weight: bold; letter-spacing: 1px;\\\"><span>使用@ 命令指定目录和文件</span></div></div></div></div><div><span><img src=\\\":/40b00469dd664bef804b8c00a90a7f4b\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; background-color: transparent; width: auto;\\\" width=\\\"auto\\\"/></span></div><p style=\\\"\\\"><span>使用</span><code><span>@</span></code><span>命令，可以把文件或整个目录作投喂给AI 分析。</span><code><span>@Manager/docs/</span></code><span> 后面写中文的时候记得加个空格。</span></p><div style=\\\"\\\"><div style=\\\"width: 100%; display: flex;\\\"><div style=\\\"display: flex;\\\"><div style=\\\"width: 7px; height: 7px; background: rgb(255, 205, 119); border-radius: 50%; z-index: 1;\\\"><span style=\\\"\\\"><br/></span></div><div style=\\\"width: 24px; height: 24px; background: rgb(67, 154, 100); border-radius: 50%; text-align: center;\\\"><p style=\\\"font-size: 20px; color: #000;\\\"><strong style=\\\"\\\"><span style=\\\"\\\">3</span></strong></p></div></div><div style=\\\"\\\"><div style=\\\"text-align: left; color: rgb(67, 154, 100); font-weight: bold; letter-spacing: 1px;\\\"><span>在gemini-cli中切换到命令行</span></div></div></div></div><div style=\\\"\\\"><span><img src=\\\":/9f1538d1912c4827aad9cfb41c3e65ed\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; background-color: transparent; width: auto;\\\" width=\\\"auto\\\"/></span></div><div style=\\\"\\\"><span><img src=\\\":/08b9df3d9eb34989ab60a8cdd80a0c52\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; background-color: transparent; width: auto;\\\" width=\\\"auto\\\"/></span></div><p style=\\\"\\\"><span>输入 </span><code><span>!</span></code><span> 就可以切换到命令行模式，不用退出当前 Gemini CLI终端</span></p></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":5314}]"
metadata_diff: {"new":{"id":"9453c0383b3e4f379d7930dee66eeb91","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345721275,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:12:42.148Z
created_time: 2025-11-28T16:12:42.148Z
type_: 13