> For the complete documentation index, see [llms.txt](https://pyohamen.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pyohamen.gitbook.io/til/git/git_basics/branch.md).

# 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 {브랜치명}
    ```
