def repo_unpushed?(path)
      unpushed = ""
      Dir.chdir(path) do
        branch_ref = `/usr/bin/git symbolic-ref HEAD 2>/dev/null`
        branch = branch_ref.chomp.split('/').last
        unpushed = `git cherry -v origin/#{branch} 2>/dev/null`
      end
      return !(unpushed.empty?)
    end
def repo_unpushed?(path)
      unpushed = ""
      Dir.chdir(path) do
        branch_ref = `/usr/bin/git symbolic-ref HEAD 2>/dev/null`
        branch = branch_ref.chomp.split('/').last
        unpushed = `git cherry -v origin/#{branch} 2>/dev/null`
      end
      return !(unpushed.empty?)
    end
Finds if there are any commits which have not been pushed to origin