오래된 Git 브랜치를 태그로 변환하여 도구에서 덜 보이게 '보관'하는 방법을 설명하는 Git 별칭(alias) 설정 방법을 공유합니다.
쉘 자동 완성 기능도 함께 제공합니다.
https://etc.octavore.com/2025/12/archiving-git-branches-as-tags/
Archiving git branches as tags
I have a spicy git alias that allows me to "archive" old git branches by converting them to tags, making them less visible across git tooling. # ~/.gitconfig [alias] archive-branch = "!f() { \ : git switch; \ local git_branch=${1:-$(git branch --show-curre
etc.octavore.com
반응형
'【🧰 SW Info & Tips】 > Git│SVN' 카테고리의 다른 글
| Could not open repository libgit2 returned: repository path ... is not owned by current user. (0) | 2025.12.07 |
|---|---|
| 누구나 쉽게 이해할 수 있는 Git 입문 (0) | 2020.10.24 |
| SVN 커밋 로그를 바꾸는 방법 (0) | 2012.02.04 |
| SVN 커밋 메시지가 없는 경우 커밋을 거부하는 방법 (0) | 2012.02.04 |
| SVN 커밋 메시지가 자동으로 TRAC의 티켓에 등록되도록 만드는 방법 (0) | 2012.02.04 |
댓글