This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
branches = `git branch --list ` | |
branches.gsub!('\n') | |
branches_arr = branches.split | |
# Removing from the branches_arr the branches you want to keep. | |
# Add or remove branches from here based on your need. | |
branches_arr.delete('*') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following package was automatically installed and is no longer required: | |
libkmod2 |