def create(*args)
      arguments(args, required: [:user, :repo]) do
        permit VALID_REF_PARAM_NAMES
        assert_required REQUIRED_REF_PARAMS
      end
      params = arguments.params
      validate_reference params['ref']

      post_request("/repos/#{arguments.user}/#{arguments.repo}/git/refs", params)
    end
def create(*args)
      arguments(args, required: [:user, :repo]) do
        permit VALID_REF_PARAM_NAMES
        assert_required REQUIRED_REF_PARAMS
      end
      params = arguments.params
      validate_reference params['ref']

      post_request("/repos/#{arguments.user}/#{arguments.repo}/git/refs", params)
    end
Create a reference

 @param [Hash] params
 @input params [String] :ref
   The name of the fully qualified reference (ie: refs/heads/master).
   If it doesn’t start with ‘refs’ and have at least two slashes,
   it will be rejected.
 @input params [String] :sha
   The SHA1 value to set this reference to

 @example
  github = Github.new
  github.git_data.references.create 'user-name', 'repo-name',
    ref: "refs/heads/master",
    sha:  "827efc6d56897b048c772eb4087f854f46256132"

 @api public