Method: Git::Lib#change_head_branch
- Defined in:
- lib/git/lib.rb
#change_head_branch(branch_name)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
684 685 686 |
# File 'lib/git/lib.rb', line 684 def change_head_branch(branch_name) command('symbolic-ref', 'HEAD', "refs/heads/#{branch_name}") end |