# Git branch

## 1. commands

* 현재 작업중인 브랜치 확인
  * ```bash
    $ git branch
    ```
  *
* 브랜치 생성
  * ```bash
     (master) $ git branch {브랜치명}
    ```
* 브랜치 이동
  * ```bash
     (master) $ git checkout {브랜치명}
    ```
* 브랜치 생성 및 이동
  * ```
     (master) $ git checkout -b {브랜치명}
    ```
* 브랜치 삭제
  * ```
     (master) $ git branch -d {브랜치명}
    ```
* 브랜치 목록
  * ```
     (master) $ git branch
    ```
* 브랜치 병합
  * ```
     (master) $ git merge {브랜치명}
    ```


---

# 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://pyohamen.gitbook.io/til/git/git_basics/branch.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.
