Sha256: 769edc0989e96bca108ef24f5582713c1fe9d973863f1d6e4bde0bdf70e3aec0
Contents?: true
Size: 351 Bytes
Versions: 1
Compression:
Stored size: 351 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.0 | lib/git_helper/clean_git.rb |