# 29.11、Git 拉取/获取/推送

## Git 拉取

Git 拉取就是将远程Git仓库所有信息都下载到本地，包括提交记录、分支、标签等等。**而且会自动合并代码/分支**

命令：

```
git pull
```

还可以指定只拉取远程特定分支的信息：

```
git pull orgin master
```

## Git 获取

Git 获取和 Git拉取基本相同，**唯一的区别就是不回自动合并代码和分支，需要手动合并。**

```
git fetch
```

```
git fetch orgin master
```

## Git 推送

Git 推送就是将本地的代码提交到远程服务器。使用非常简单，如：

```
git push
```


---

# 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://monksoul.gitbook.io/hoa/er-shi-jiu-git-dai-ma-guan-li/laquhuoqutuisong.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.
