Sha256: 34c651878d7d179fa057899a16c027c4aed8a94ca2a09c76d484ed81db7926cf
Contents?: true
Size: 349 Bytes
Versions: 1
Compression:
Stored size: 349 Bytes
Contents
module GitHelper class CleanGit def execute system("git checkout $(git symbolic-ref refs/remotes/origin/HEAD | sed \"s@^refs/remotes/origin/@@\")") system("git pull") system("git fetch -p") system("git branch -vv | grep \"origin/.*: gone]\" | awk '{print \$1}' | grep -v \"*\" | xargs git branch -D") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git_helper-1.0.1 | lib/git_helper/clean_git.rb |