# 提交更改

![Add commits](/files/-LezYZFww-OCVW4hROK1)

分支创建后，是时候做一些改变了。无论何时添加，编辑或删除文件，都要进行提交（Commit），将它们添加到分支中。添加提交的操作使得你可以在处理功能分支时跟踪进度。

提交还会创建一份透明的工作历史记录，其他人可以遵循这些记录来了解你的工作内容及变更原因。每个提交都有一个关联的提交消息，用于解释为什么做了特定的更改。此外，每个提交都被视为一个独立的变更单位。这样，一旦发现错误，或者你决定朝另一个方向进行，就可以回滚更改。

## **高级技巧**

提交消息很重要，特别是当 Git 已跟踪你的更改，并在它们被推送到服务器后展示出来。通过编写明确的提交消息，你可以让其他人更轻松地跟进并提供反馈意见。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://github.highlight.ink/github-flow/add-commits.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
