def remotes_for_branches
      remotes = git_call('branch -lvv').gsub('* ', '').split("\n").map do |line|
        line.split(' ')[2][1..-2].split('/').first
      end
      remotes.uniq
    end
def remotes_for_branches
      remotes = git_call('branch -lvv').gsub('* ', '').split("\n").map do |line|
        line.split(' ')[2][1..-2].split('/').first
      end
      remotes.uniq
    end
Find all remotes which are currently referenced by local branches.