Sha256: 3624f2f705870d8ae1f5d65f34c5e82cb99d9341d5b5dd9f7330900ba367f309
Contents?: true
Size: 438 Bytes
Versions: 45
Compression:
Stored size: 438 Bytes
Contents
require 'thor' require 'thegarage/gitx' require 'thegarage/gitx/cli/base_command' module Thegarage module Gitx module Cli class ShareCommand < BaseCommand desc 'share', 'Share the current branch in the remote repository' def share run_cmd "git push origin #{current_branch.name}" run_cmd "git branch --set-upstream-to origin/#{current_branch.name}" end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems