def get(*args)
      arguments(args, required: [:user, :repo, :ref])
      validate_reference arguments.ref
      params = arguments.params

      get_request("/repos/#{arguments.user}/#{arguments.repo}/git/refs/#{arguments.ref}", params)
    end
def get(*args)
      arguments(args, required: [:user, :repo, :ref])
      validate_reference arguments.ref
      params = arguments.params

      get_request("/repos/#{arguments.user}/#{arguments.repo}/git/refs/#{arguments.ref}", params)
    end
Get a reference

 The ref in the URL must be formatted as <tt>heads/branch</tt>,
 not just branch. For example, the call to get the data for a
 branch named sc/featureA would be formatted as heads/sc/featureA

 @example
  github = Github.new
  github.git_data.references.get 'user-name', 'repo-name', 'heads/branch'

 @api public