Sha256: 3f61c56237ac1f5919bbd3c6dc72a7bf9082151e4f733b757e555aa9de19bbab
Contents?: true
Size: 375 Bytes
Versions: 46
Compression:
Stored size: 375 Bytes
Contents
require 'thor' require 'gitx' require 'gitx/cli/base_command' 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
Version data entries
46 entries across 46 versions & 1 rubygems