Method: Bruw::Git.branch

Defined in:
lib/bruw/git.rb

.branch(remote, branch) ⇒ Object



33
34
35
36
# File 'lib/bruw/git.rb', line 33

def self.branch(remote, branch)
  `git branch -D #{branch}` if branch_exists?(branch)
  `git checkout #{remote}/#{branch} && git switch -c #{branch}`
end