Skip to content
henrikperssonPublic

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

git-trash

Delete your old branches, including their linked worktrees, that you always forget to remove when you're done!

Problem

➜ git branch | wc -l
      325

Solution

trash

By default the current branch along with the branches master, main, develop and development will be ignored. The current branch, master and main can never be trashed but you can customize other or additional branches to ignore by setting SKIP_BRANCHES.

➜ SKIP_BRANCHES="branch-1|feature/v3" git-trash

Branches checked out in a linked worktree are marked with 󰙅 and the worktree is removed together with the branch. Removal is never forced so a worktree with uncommitted changes, or one that is locked, is kept along with its branch.

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages