# Git

## Git flow开发流程

### 安装Git flow

```bash
curl -L https://raw.githubusercontent.com/nvie/gitflow/develop/contrib/gitflow-installer.sh -o /tmp/gitflow-installer.sh
sudo bash /tmp/gitflow-installer.sh
```

### 初始化

开始规定工作流，进入`develop`分支开发

```bash
git flow init -d
```

### 开始一个Feature

```bash
git flow feature start <your feature>
```

完成一个Feature

```bash
git flow feature finish <your feature>
```

上传一个 Feature

```bash
git flow feature publish <name>
```

或上传一个Feature到某个remote

```bash
git flow feature pull <remote> <name>
```

### 开始一个Release分支

```bash
git flow release
git flow release start <release> [<base>]
git flow release finish <release>
```

### 开始一个Hotfix分支

```bash
git flow hotfix
git flow hotfix start <release> [<base>]
git flow hotfix finish <release>
```


---

# 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://doc.tanmer.cn/git.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.
