Method: Git::Base#push

Defined in:
lib/git/base.rb

#push(remote = 'origin', branch = 'master') ⇒ Object

pushes changes to a remote repository - easiest if this is a cloned repository, otherwise you may have to run something like this first to setup the push parameters:

@git.config('remote.remote-name.push', 'refs/heads/master:refs/heads/master')


296
297
298
# File 'lib/git/base.rb', line 296

def push(remote = 'origin', branch = 'master')
  self.lib.push(remote, branch)
end