【🧰 SW Info & Tips】/Git│SVN

Git 브랜치를 태그로 보관하는 방법

[一日一學, 一日一新] 2025. 12. 28.

오래된 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

 

반응형

댓글