Method: Git::Base#reset_hard

Defined in:
lib/git/base.rb

#reset_hard(commitish = nil, opts = {}) ⇒ Object

resets the working directory to the commitish with ‘–hard’



240
241
242
243
# File 'lib/git/base.rb', line 240

def reset_hard(commitish = nil, opts = {})
  opts = {:hard => true}.merge(opts)
  self.lib.reset(commitish, opts)
end