def url
      type = File.directory?(file) ? "tree" : "raw"
      name = file.path.split('/').last
      %{#{upstream}/#{type}/#{branch}/#{folder_name}/#{name}}
    end
def url
      type = File.directory?(file) ? "tree" : "raw"
      name = file.path.split('/').last
      %{#{upstream}/#{type}/#{branch}/#{folder_name}/#{name}}
    end
Public: get the url for the pushed file path

 Returns the String url of the pushed file path