# git branch 정렬, 이제 복잡한 스크립트 없이 한 줄로 끝낸다

Original title: Sort branches by last commit date

> Hacker News story 49435285 · language: ko · submitted 2026-08-25
> Web version: https://zeli.app/ko/story/49435285
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 137 · by [speckx](<https://news.ycombinator.com/user?id=speckx>) · 💬 50
[original](<https://ryangreenberg.com/til/git-branches-by-commit-date/>) · [HN discussion](<https://news.ycombinator.com/item?id=49435285>)

## Summary

git 브랜치가 많아져 최근 커밋 순으로 정렬하고 싶다면, 더 이상 복잡한 셸 스크립트를 만들 필요가 없다. `git config branch.sort committerdate` 한 줄로 기본 정렬을 지정하거나, `git branch --sort committerdate`로 일회성 정렬을 할 수 있다. 이 글은 저자가 수년간 사용하던 스크립트가 현대 git에서는 불필요함을 발견한 경험을 공유하며, `git-for-each-ref`가 지원하는 다양한 정렬 키(authordate, committerdate, creatordate, taggerdate, contents:size 등)도 소개한다.

## Key quote

> 현대 git에서는 전혀 불필요하다. `git config branch.sort committerdate`만 설정하면 된다.

---

## Cite

- Page: https://zeli.app/ko/story/49435285
- Date: 2026-08-25
- Source: ryangreenberg.com (https://ryangreenberg.com/til/git-branches-by-commit-date/)
- Hacker News: https://news.ycombinator.com/item?id=49435285

## Other languages

- en: https://zeli.app/story/49435285 · markdown: https://zeli.app/story/49435285.md
- zh: https://zeli.app/zh/story/49435285 · markdown: https://zeli.app/zh/story/49435285.md
- ja: https://zeli.app/ja/story/49435285 · markdown: https://zeli.app/ja/story/49435285.md
- de: https://zeli.app/de/story/49435285 · markdown: https://zeli.app/de/story/49435285.md
- es: https://zeli.app/es/story/49435285 · markdown: https://zeli.app/es/story/49435285.md
- ru: https://zeli.app/ru/story/49435285 · markdown: https://zeli.app/ru/story/49435285.md
