From 32fbe703605310c91677225442a62ae0869d0892 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Mon, 12 Nov 2007 10:55:39 -0800 Subject: added push, changed some docs, merged README and EXAMPLES, fixed the Rake tasks to build a proper gem --- lib/git/lib.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/git/lib.rb') diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 5bb2e2b..575f0d7 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -296,6 +296,10 @@ module Git command('fetch', remote.to_s) end + def push(remote, branch = 'master') + command('push', [remote.to_s, branch.to_s]) + end + def tag_sha(tag_name) command('show-ref', ['--tags', '-s', tag_name]) end -- cgit