Class: GitHelper::CheckoutDefault

Inherits:
Object
  • Object
show all
Defined in:
lib/git_helper/checkout_default.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



3
4
5
# File 'lib/git_helper/checkout_default.rb', line 3

def execute
  system("git checkout $(git symbolic-ref refs/remotes/origin/HEAD | sed \"s@^refs/remotes/origin/@@\")")
end