mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* git-a*: add and update Korean translation * git-b*: add and update Korean translation * git-*: add and update Korean translation * Update git-standup.md --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
21 lines
658 B
Markdown
21 lines
658 B
Markdown
# git squash
|
|
|
|
> 여러 커밋을 하나의 커밋으로 합치기.
|
|
> `git-extras`의 일부.
|
|
> 더 많은 정보: <https://github.com/tj/git-extras/blob/master/Commands.md#git-squash>.
|
|
|
|
- 특정 브랜치의 모든 커밋을 현재 브랜치에 하나의 커밋으로 합치기:
|
|
|
|
`git squash {{source_branch}}`
|
|
|
|
- 현재 브랜치에서 특정 커밋부터 시작하는 모든 커밋을 합치기:
|
|
|
|
`git squash {{commit}}`
|
|
|
|
- 최근 `n`개의 커밋을 합치고 메시지와 함께 커밋:
|
|
|
|
`git squash HEAD~{{n}} "{{메시지}}"`
|
|
|
|
- 최근 `n`개의 커밋을 합치고 모든 개별 메시지를 연결하여 커밋:
|
|
|
|
`git squash --squash-msg HEAD~{{n}}`
|