class Github::GitData::References

def update(user_name, repo_name, ref, params={})


"force" => true
"sha" => "827efc6d56897b048c772eb4087f854f46256132",
github.git_data.references.update 'user-name', 'repo-name', 'heads/master',
github = Github.new
= Examples

* :force - Boolean indicating whether to force the update or to make sure the update is a fast-forward update. The default is false, so leaving this out or setting it to false will make sure you’re not overwriting work.
* :sha - String of the SHA1 value to set this reference to
= Inputs

Update a reference
def update(user_name, repo_name, ref, params={})
  set :user => user_name, :repo => repo_name
  assert_presence_of user, repo, ref
  validate_reference ref
  normalize! params
  filter! VALID_REF_PARAM_NAMES, params
  assert_required_keys(%w[ sha ], params)
  patch_request("/repos/#{user}/#{repo}/git/refs/#{ref}", params)
end