class Github::GitData::References

def create(user_name, repo_name, params={})


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

* :sha - String of the SHA1 value to set this reference to
* :ref - String of 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.
= Inputs

Create a reference
def create(user_name, repo_name, params={})
  _update_user_repo_params(user_name, repo_name)
  _validate_user_repo_params(user, repo) unless user? && repo?
  _normalize_params_keys params
  _filter_params_keys VALID_REF_PARAM_NAMES, params
  _validate_presence_of params['ref']
  _validate_reference params['ref']
  assert_required_keys(%w[ ref sha ], params)
  post_request("/repos/#{user}/#{repo}/git/refs", params)
end