Skip to main content

update_ref

Function update_ref 

Source
pub fn update_ref(branch: &str, sha: &str) -> Result<()>
Expand description

Point a branch at a commit, creating it if absent. Does not touch the worktree.