Class Git::Branch
In: lib/git/branch.rb
Parent: Path

Methods

archive   checkout   create   current   delete   gcommit   in_branch   merge   new   stashes   to_a   to_s   update_ref  

Attributes

full  [RW] 
name  [RW] 
remote  [RW] 

Public Class methods

Public Instance methods

g.branch(‘new_branch’).in_branch do

  # create new file
  # do other stuff
  return true # auto commits and switches back

end

[Validate]