Class: Gitx::Cli::TrackCommand

Inherits:
BaseCommand show all
Defined in:
lib/gitx/cli/track_command.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Methods included from Thor::Actions

#ask_editor, #run_cmd

Constructor Details

This class inherits a constructor from Gitx::Cli::BaseCommand

Instance Method Details

#trackObject



9
10
11
# File 'lib/gitx/cli/track_command.rb', line 9

def track
  run_cmd "git branch --set-upstream-to origin/#{current_branch.name}"
end