We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
reset_head()
1 parent 8180544 commit a8d5bcaCopy full SHA for a8d5bca
src/git.rs
@@ -294,6 +294,8 @@ impl Repository {
294
})
295
}
296
297
+ /// Fetches any changes from the `origin` remote and performs a hard reset
298
+ /// to the tip of the `origin/master` branch.
299
pub fn reset_head(&self) -> Result<(), PerformError> {
300
let mut origin = self.repository.find_remote("origin")?;
301
let original_head = self.head_oid()?;
0 commit comments