티스토리 뷰
728x90
alias gbrd='git co main && git pull && git branch | egrep -v "(main|master)" | xargs git branch -D'
git branch | egrep -v "(main|master)" | xargs git branch -D
How to delete all Git branches except master or main exampleb | TheServerSide
When an exhaustive sprint comes to an end, or a milestone release makes its way out the door, a cleanup routine many developers like to perform is the deletion of all Git branches except the master or main branch in the local repository. Often this task is
www.theserverside.com
728x90
'공부' 카테고리의 다른 글
[intelliJ] does not rearrange import in lexicographic order (0) | 2023.01.28 |
---|---|
[hive] 대체제 (hudi, iceberg, delta lake) -> iceberg (0) | 2023.01.28 |
[hive] table get `location` (0) | 2023.01.24 |
[s3] delete (object & version) (0) | 2023.01.24 |
[mongoose] MongooseServerSelectionError: connect ECONNREFUSED ::1:27017 (0) | 2023.01.24 |
댓글