更新 .gitignore 文件,添加 .specstory 目录以忽略 AI 互动记录,避免将其提交到 Git 仓库中。
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
.specstory
|
# Cursor - AI conversation history
|
||||||
|
.specstory/
|
||||||
@ -2265,3 +2265,43 @@ Lines added: undefined, lines removed: 7
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
_**User**_
|
||||||
|
|
||||||
|
修改gitignore避免将. specstory的记录的ai互动加到仓库中
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
_**Assistant**_
|
||||||
|
|
||||||
|
好的,没问题。将 `.specstory` 目录添加到 `.gitignore` 文件中是一个很好的实践,可以避免将这些与项目代码无关的 AI 互动记录提交到 Git 仓库中。
|
||||||
|
|
||||||
|
我将为您创建一个 `.gitignore` 文件,并在其中添加 `.specstory` 目录。如果该文件已存在,我会在其末尾追加这个规则。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<details><summary>Edit file: .gitignore</summary>
|
||||||
|
|
||||||
|
I will create a new `.gitignore` file (or append to an existing one) and add the `.specstory/` directory to it, ensuring that the AI conversation history is ignored by Git.
|
||||||
|
|
||||||
|
**Chunk 1**
|
||||||
|
Lines added: 2, lines removed: 1
|
||||||
|
|
||||||
|
```diff
|
||||||
|
@@ -1,1 +1,2 @@
|
||||||
|
- .specstory
|
||||||
|
+ # Cursor - AI conversation history
|
||||||
|
+ .specstory/
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
`.gitignore` 文件已经创建并配置好了。
|
||||||
|
|
||||||
|
现在,Git 会自动忽略 `.specstory` 目录及其中的所有内容,您不必担心会将这些记录意外地提交到您的 Gitea 仓库中。
|
||||||
|
|
||||||
|
如果您还有其他需要忽略的文件或目录,可以按照相同的格式将它们添加到 `.gitignore` 文件中。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user